Changeset 462
- Timestamp:
- 06/30/10 09:52:10 (3 years ago)
- Location:
- trunk/clinicaltrials/repository
- Files:
-
- 2 modified
-
templates/repository/submission_step.html (modified) (4 diffs)
-
views.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/clinicaltrials/repository/templates/repository/submission_step.html
r409 r462 1 1 {% extends "base.html" %} 2 2 {% load i18n %} 3 {% block body_title %}{{ forms.form_main.title }}{% endblock %} 4 5 {# Last <p > in http://docs.djangoproject.com/en/dev/topics/templates/#id1 #} 3 {% block body_title %}{% trans forms.form_main.title %}{% endblock %} 6 4 7 5 {% block extrahead %} … … 15 13 <a href="{% url repository.edittrial trial_pk %}">{% trans "Summary" %}</a> 16 14 </small> 17 {% for step ,iscurrentin steps %}15 {% for step in steps %} 18 16 <span> / </span> 19 <small{% if iscurrent %} class="current"{% endif %}>20 <a href="{{ step}}">{% trans "Part" %} {{forloop.counter}}</a>17 <small{% if step.is_current %} class="current"{% endif %}> 18 <a href="{{ step.link }}">{% trans step.name %}</a> 21 19 </small> 22 20 {% endfor %} … … 28 26 <ul> 29 27 <li><a href="{% url repository.edittrial trial_pk %}">{% trans "Summary" %}</a></li> 30 {% for step ,iscurrentin steps %}31 <li{% if iscurrent %} class="current"{% endif %}>32 <a href="{{ step}}">{% trans "Part" %} {{forloop.counter}}</a>28 {% for step in steps %} 29 <li{% if step.is_current %} class="current"{% endif %}> 30 <a href="{{ step.link }}">{% trans step.name %}</a> 33 31 </li> 34 32 {% endfor %} … … 36 34 </div> 37 35 {% endblock %} 38 -
trunk/clinicaltrials/repository/views.py
r459 r462 123 123 steps = [] 124 124 for i in range(1,10): 125 steps.append((reverse('step_%d'%i,args=[trial_pk]), i == current_step)) 125 steps.append({'link': reverse('step_%d'%i,args=[trial_pk]), 126 'is_current': (i == current_step), 127 'name': TRIAL_FORMS[i-1]}) 126 128 return steps 127 129
