171 lines
5.3 KiB
HTML
171 lines
5.3 KiB
HTML
{% extends "base.html" %}
|
|
<!-- File form-visits-Visit.html generated 2018-06-19T18:51:51.695Z by adl.to-selmer-templates.
|
|
See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
|
{% block head %}
|
|
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type'/>
|
|
|
|
<meta content='width=device-width, initial-scale=1' name='viewport'/>
|
|
|
|
<link href='css/yyy-common.css' type='text/css' rel='stylesheet'/>
|
|
|
|
<link href='css/yyy-site.css' type='text/css' rel='stylesheet'/>
|
|
|
|
<link href='css/spinner.css' type='text/css' rel='stylesheet'/>
|
|
|
|
<link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Archivo+Black|Archivo+Narrow'/>
|
|
|
|
<title>
|
|
{{site-title}}: {{title}}
|
|
</title>
|
|
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<div id='content' class='edit'>
|
|
<form action='{{servlet-context}}/form-visits-Visit' method='POST'>
|
|
{% csrf-field %}
|
|
<p class='widget'>
|
|
<label for='id'>
|
|
id
|
|
</label>
|
|
{% ifmemberof admin admin %}
|
|
<input id='id' name='id' type='text' value='{{record.id}}'/>
|
|
{% else %}
|
|
{% ifmemberof canvassers teamorganisers issueexperts analysts issueeditors admin canvassers teamorganisers issueexperts analysts issueeditors admin %}
|
|
<span id='id' name='id' class='pseudo-widget disabled'>
|
|
{{record.id}}
|
|
</span>
|
|
{% else %}
|
|
<span id='id' name='id' class='pseudo-widget not-authorised'>
|
|
You are not permitted to view id of visits
|
|
</span>
|
|
{% endifmemberof %}
|
|
{% endifmemberof %}
|
|
</p>
|
|
<p class='widget'>
|
|
<label for='address_id'>
|
|
address_id
|
|
</label>
|
|
{% ifmemberof admin admin %}
|
|
<div class='select-box' farside='addresses' found='true'>
|
|
<input name='address_id-search-box' onchange='/* javascript to repopulate the select widget */'/>
|
|
<select id='address_id' name='address_id' comment='JavaScript stuff to fix up aynchronous loading'>
|
|
{% for record in addresses %}<option value='{{record.id}}'>{{record.address}} {{record.postcode}}</option>{% endfor %}
|
|
</select>
|
|
</div>
|
|
{% else %}
|
|
{% ifmemberof canvassers teamorganisers issueexperts analysts issueeditors admin canvassers teamorganisers issueexperts analysts issueeditors admin %}
|
|
<span id='address_id' name='address_id' class='pseudo-widget disabled'>
|
|
{{record.address_id}}
|
|
</span>
|
|
{% else %}
|
|
<span id='address_id' name='address_id' class='pseudo-widget not-authorised'>
|
|
You are not permitted to view address_id of visits
|
|
</span>
|
|
{% endifmemberof %}
|
|
{% endifmemberof %}
|
|
</p>
|
|
<p class='widget'>
|
|
<label for='canvasser_id'>
|
|
canvasser_id
|
|
</label>
|
|
{% ifmemberof admin admin %}
|
|
<div class='select-box' farside='canvassers' found='true'>
|
|
<input name='canvasser_id-search-box' onchange='/* javascript to repopulate the select widget */'/>
|
|
<select id='canvasser_id' name='canvasser_id' comment='JavaScript stuff to fix up aynchronous loading'>
|
|
{% for record in canvassers %}<option value='{{record.id}}'>{{record.username}} {{record.fullname}} {{record.email}}</option>{% endfor %}
|
|
</select>
|
|
</div>
|
|
{% else %}
|
|
{% ifmemberof canvassers teamorganisers issueexperts analysts issueeditors admin canvassers teamorganisers issueexperts analysts issueeditors admin %}
|
|
<span id='canvasser_id' name='canvasser_id' class='pseudo-widget disabled'>
|
|
{{record.canvasser_id}}
|
|
</span>
|
|
{% else %}
|
|
<span id='canvasser_id' name='canvasser_id' class='pseudo-widget not-authorised'>
|
|
You are not permitted to view canvasser_id of visits
|
|
</span>
|
|
{% endifmemberof %}
|
|
{% endifmemberof %}
|
|
</p>
|
|
<p class='widget'>
|
|
<label for='date'>
|
|
date
|
|
</label>
|
|
{% ifmemberof admin admin %}
|
|
<input id='date' name='date' type='text' value='{{record.date}}'/>
|
|
{% else %}
|
|
{% ifmemberof canvassers teamorganisers issueexperts analysts issueeditors admin canvassers teamorganisers issueexperts analysts issueeditors admin %}
|
|
<span id='date' name='date' class='pseudo-widget disabled'>
|
|
{{record.date}}
|
|
</span>
|
|
{% else %}
|
|
<span id='date' name='date' class='pseudo-widget not-authorised'>
|
|
You are not permitted to view date of visits
|
|
</span>
|
|
{% endifmemberof %}
|
|
{% endifmemberof %}
|
|
</p>
|
|
<p class='widget action-safe'>
|
|
<label for='save-button' class='action-safe'>
|
|
To save this visits record
|
|
</label>
|
|
<input id='save-button' name='save-button' class='action-safe' type='submit' value='Save!'/>
|
|
</p>
|
|
<p class='widget action-dangerous'>
|
|
<label for='delete-button' class='action-dangerous'>
|
|
To delete this visits record
|
|
</label>
|
|
<input id='delete-button' name='delete-button' class='action-dangerous' type='submit' value='Delete!'/>
|
|
</p>
|
|
</form>
|
|
</div>
|
|
|
|
{% endblock %}
|
|
{% block foot %}
|
|
<footer>
|
|
<div id='credits'>
|
|
<div>
|
|
<img height='24' width='24' src='img/credits/ric-logo.png'/>
|
|
|
|
A project of the
|
|
|
|
<a href='https://radical.scot/'>
|
|
Radical Independence Campaign
|
|
</a>
|
|
||
|
|
Version {{version}}
|
|
|
|
</div>
|
|
<div>
|
|
<img src='img/credits/luminus-logo.png' alt='Clojure' width='16' height='16'/>
|
|
Built with
|
|
<a href='http://www.luminusweb.net/'>
|
|
LuminusWeb
|
|
</a>
|
|
||
|
|
|
|
<img src='img/credits/clojure-icon.gif' alt='Clojure' width='16' height='16'/>
|
|
Powered by
|
|
<a href='http://clojure.org'>
|
|
Clojure
|
|
</a>
|
|
||
|
|
|
|
<img src='img/credits/github-logo-transparent.png' alt='GitHub' width='16' height='16'/>
|
|
Find me/fork me on
|
|
<a href='https://github.com/simon-brooke/smeagol'>
|
|
Github
|
|
</a>
|
|
||
|
|
|
|
<img src='img/credits/gnu.small.png' alt='Free Software Foundation' width='16' height='16'/>
|
|
Licensed under the
|
|
<a href='http://www.gnu.org/licenses/gpl-2.0.html'>
|
|
GNU General Public License version 2.0
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
|
|
{% endblock %} |