blob: 2023aa9d2a64e1969ed6b4ed9cd656485c20598b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
{% extends 'base.html' %}
{% load staticfiles %}
{% load url from future %}
{% load i18n %}
{% load bootstrap3 %}
{# login template #}
{% block title %}
更新个人信息 | 2014 SKA Summer School
{% endblock %}
{% block css_extra %}
<link href="{% static 'css/account_profile_update.css' %}" rel="stylesheet">
{% endblock %}
{% block content %}
<div class="container">
<h2>更新个人信息</h2>
<br>
<form role="form" class="form-horizontal" method="post" enctype="multipart/form-data">
{% csrf_token %}
<div class="mainform">
{% bootstrap_form form layout='horizontal' %}
</div>
<hr>
<div class="row add-attachments">
<!--<p><strong>上传附件(可选)</strong> -->
<div class="col-md-2">
<p class="text-right"><strong>上传附件(可选)</strong></p>
</div>
<div class="col-md-4">
<p><a id="add-subform" class="btn btn-info" role="button" href="javascript:void(0)">{% trans 'Add another attachment' %}</a></p>
</div>
</div>
<hr>
{# bootstrap_formset formset layout='horizontal' #}
{{ formset.management_form }}
{% for form in formset.forms %}
<div class="subform">
{% bootstrap_form form layout='horizontal' %}
<hr>
</div>
{% endfor %}
{% buttons submit='提交' reset='重置' layout='horizontal' %}{% endbuttons %}
</form>
</div>
{% endblock %}
{% block js_extra %}
<script src="{% static 'js/account_profile_update.js' %}" type="text/javascript"></script>
{% endblock %}
{# vim: set ts=8 sw=2 tw=0 fenc=utf-8 ft=htmldjango.html: #}
|