Skip to content

Commit f5e0ee9

Browse files
committed
add templates/includes
- Legacy-Id: 5175
1 parent f6e05af commit f5e0ee9

33 files changed

Lines changed: 681 additions & 0 deletions
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<h2>Activies Log</h2>
2+
<div class="inline-related last-related">
3+
<table class="full-width">
4+
<thead>
5+
<tr>
6+
<th>Date</th>
7+
<th>Time</th>
8+
<th>Action</th>
9+
<th>Name</th>
10+
</tr>
11+
</thead>
12+
<tbody>
13+
{% for entry in activities %}
14+
<tr class="{% cycle 'row1' 'row2' %}">
15+
<td>{{ entry.act_date }}</td>
16+
<td>{{ entry.act_time }}</td>
17+
<td>{{ entry.activity }}</td>
18+
<td>{{ entry.act_by }}</td>
19+
</tr>
20+
{% endfor %}
21+
</tbody>
22+
</table>
23+
</div> <!-- inline-related -->
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<div class="inline-group">
2+
<h2>Additional Web Pages</h2>
3+
{{ awp_formset.management_form }}
4+
{{ awp_formset.non_form_errors }}
5+
6+
{% for form in awp_formset.forms %}
7+
<div class="inline-related{% if forloop.last %} last-related{% endif %}">
8+
<h3><b>Web Page:</b>&nbsp; #{{ forloop.counter }}</h3>
9+
<table class="awp-form full-width amstable">
10+
<col width="150">
11+
{{ form.as_table }}
12+
</table>
13+
</div> <!-- iniline-related -->
14+
{% endfor %}
15+
</div> <!-- inline-group -->
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<h2>Additional Web Pages</h2>
2+
{{ awp_formset.management_form }}
3+
{{ awp_formset.non_form_errors }}
4+
5+
{% for form in awp_formset.forms %}
6+
<div class="inline-related{% if forloop.last %} last-related{% endif %}">
7+
<h3><b>Web Page:</b>&nbsp; #{{ forloop.counter }}
8+
{% if awp_formset.can_delete %}<span class="delete">{{ form.DELETE }} Delete</span>{% endif %}
9+
</h3>
10+
{% if form.non_field_errors %}{{ form.non_field_errors }}{% endif %}
11+
<table id="area-awp-table" class="full-width amstable">
12+
<col width="150">
13+
<tr>
14+
<th>URL:</th>
15+
<td>{{ form.url.errors }}{{ form.url }}</td>
16+
</tr>
17+
<tr>
18+
<th>Name:</th>
19+
<td>{{ form.name.errors }}{{ form.name }}</td>
20+
</tr>
21+
{{ form.id }}
22+
</table>
23+
</div> <!-- inline-related -->
24+
{% endfor %}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<div class="inline-group">
2+
<h2>Additional Web Pages</h2>
3+
{% for item in awps %}
4+
<div class="inline-related{% if forloop.last %} last-related{% endif %}">
5+
<h3><b>Web Page:</b>&nbsp; #{{ forloop.counter }}</h3>
6+
<table class="full-width">
7+
<col width="150">
8+
<tr><td>URL:</td><td>{{ item.url }}</td><tr>
9+
<tr><td>Name:</td><td>{{ item.name }}</td></tr>
10+
</table>
11+
</div> <!-- iniline-related -->
12+
{% endfor %}
13+
</div> <!-- inline-group -->
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<div class="button-group">
2+
<ul>
3+
<li><button onclick="window.location='../'">Back</button></li>
4+
</ul>
5+
</div> <!-- button-group -->
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<div class="button-group">
2+
<ul>
3+
<li><button type="submit" name="submit" value="Next">Next</button></li>
4+
<li><button type="submit" name="submit" value="Cancel">Cancel</button></li>
5+
</ul>
6+
</div> <!-- button-group -->
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<div class="button-group">
2+
<ul>
3+
<li><button type="submit" name="submit" value="Proceed">Proceed</button></li>
4+
</ul>
5+
</div> <!-- button-group -->
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<div class="button-group">
2+
<ul>
3+
<li><button type="submit" name="submit" value="Save">Save</button></li>
4+
</ul>
5+
</div> <!-- button-group -->
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<div class="button-group">
2+
<ul>
3+
<li><button type="submit" name="submit" value="Save">Save</button></li>
4+
<li><button type="submit" name="submit" value="Cancel">Cancel</button></li>
5+
</ul>
6+
</div> <!-- button-group -->
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<div class="button-group">
2+
<ul>
3+
<li><button type="submit" name="submit" value="Search">Search</button></li>
4+
</ul>
5+
</div> <!-- button-group -->

0 commit comments

Comments
 (0)