Tactical commit; much progress but not ready for release.
This commit is contained in:
parent
fc2bd86cff
commit
0026218993
61 changed files with 2920 additions and 1031 deletions
|
|
@ -2,12 +2,6 @@
|
|||
{% block big-links %}
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
<h2>
|
||||
Alpha test code
|
||||
</h2>
|
||||
<p>
|
||||
Although addresses in the database mostly are real, all personal data in the database
|
||||
is randomly generated and does not represent real people.
|
||||
</p>
|
||||
{{motd|safe}}
|
||||
{% endblock %}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
<!-- File application-index.html generated 2018-07-05T10:14:18.460Z by adl.to-selmer-templates.
|
||||
<!-- File application-index.html generated 2018-07-07T08:09:49.942Z by adl.to-selmer-templates.
|
||||
See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
||||
|
||||
|
||||
|
|
@ -15,7 +15,8 @@ Address
|
|||
{% ifmemberof canvassers teamorganisers issueexperts analysts issueeditors admin %}
|
||||
<dd>
|
||||
<p>
|
||||
Addresses of all buildings which contain dwellings.
|
||||
Addresses of all buildings which contain
|
||||
dwellings.
|
||||
</p>
|
||||
</dd>
|
||||
{% endifmemberof %}
|
||||
|
|
@ -29,7 +30,8 @@ Authority
|
|||
{% ifmemberof canvassers teamorganisers issueexperts analysts issueeditors admin %}
|
||||
<dd>
|
||||
<p>
|
||||
Authorities which may authenticate canvassers to the system.
|
||||
Authorities which may authenticate canvassers to
|
||||
the system.
|
||||
</p>
|
||||
</dd>
|
||||
{% endifmemberof %}
|
||||
|
|
@ -43,7 +45,8 @@ Canvasser
|
|||
{% ifmemberof canvassers teamorganisers admin canvassers teamorganisers issueexperts analysts issueeditors admin %}
|
||||
<dd>
|
||||
<p>
|
||||
Primary users of the system: those actually interviewing electors.
|
||||
Primary users of the system: those actually
|
||||
interviewing electors.
|
||||
</p>
|
||||
</dd>
|
||||
{% endifmemberof %}
|
||||
|
|
@ -57,7 +60,9 @@ District
|
|||
{% ifmemberof public admin canvassers teamorganisers issueexperts analysts issueeditors %}
|
||||
<dd>
|
||||
<p>
|
||||
Electoral districts: TODO: Shape (polygon) information will need to be added, for use in maps.
|
||||
Electoral districts: TODO: Shape (polygon)
|
||||
information will need to be added, for use in
|
||||
maps.
|
||||
</p>
|
||||
</dd>
|
||||
{% endifmemberof %}
|
||||
|
|
@ -71,12 +76,12 @@ Dwelling
|
|||
{% ifmemberof canvassers teamorganisers issueexperts analysts issueeditors admin %}
|
||||
<dd>
|
||||
<p>
|
||||
All dwellings within addresses in the system; a dwelling is a
|
||||
house, flat or appartment in which electors live. Every address should have
|
||||
at least one dwelling; essentially, an address maps onto a street door and
|
||||
dwellings map onto what's behind that door. So a tenement or a block of flats
|
||||
would be one address with many dwellings.
|
||||
|
||||
All dwellings within addresses in the system; a
|
||||
dwelling is a house, flat or appartment in which electors live.
|
||||
Every address should have at least one dwelling; essentially,
|
||||
an address maps onto a street door and dwellings map onto
|
||||
what's behind that door. So a tenement or a block of flats
|
||||
would be one address with many dwellings.
|
||||
</p>
|
||||
</dd>
|
||||
{% endifmemberof %}
|
||||
|
|
@ -90,7 +95,26 @@ Elector
|
|||
{% ifmemberof canvassers teamorganisers issueexperts analysts issueeditors admin %}
|
||||
<dd>
|
||||
<p>
|
||||
All electors known to the system; electors are people believed to be entitled to vote in the current campaign.
|
||||
All electors known to the system; electors are
|
||||
people believed to be entitled to vote in the current
|
||||
campaign.
|
||||
</p>
|
||||
</dd>
|
||||
{% endifmemberof %}
|
||||
{% ifmemberof canvassers teamorganisers issueexperts analysts issueeditors admin %}
|
||||
<dt>
|
||||
<a href='list-events-Events'>
|
||||
Event
|
||||
</a>
|
||||
</dt>
|
||||
{% endifmemberof %}
|
||||
{% ifmemberof canvassers teamorganisers issueexperts analysts issueeditors admin %}
|
||||
<dd>
|
||||
<p>
|
||||
|
||||
An event to which a team or teams are invited. Typically created by the team organiser(s).
|
||||
May be a training event, a social event or a canvassing session.
|
||||
|
||||
</p>
|
||||
</dd>
|
||||
{% endifmemberof %}
|
||||
|
|
@ -104,7 +128,8 @@ Followupaction
|
|||
{% ifmemberof issueexperts canvassers analysts issueeditors admin %}
|
||||
<dd>
|
||||
<p>
|
||||
Actions taken on followup requests.
|
||||
Actions taken on followup
|
||||
requests.
|
||||
</p>
|
||||
</dd>
|
||||
{% endifmemberof %}
|
||||
|
|
@ -129,7 +154,8 @@ Followuprequest
|
|||
{% ifmemberof canvassers teamorganisers issueexperts analysts issueeditors admin %}
|
||||
<dd>
|
||||
<p>
|
||||
Requests for a followup with an issue expert
|
||||
Requests for a followup with an issue
|
||||
expert
|
||||
</p>
|
||||
</dd>
|
||||
{% endifmemberof %}
|
||||
|
|
@ -143,7 +169,8 @@ Gender
|
|||
{% ifmemberof canvassers teamorganisers issueexperts analysts issueeditors admin %}
|
||||
<dd>
|
||||
<p>
|
||||
All genders which may be assigned to electors.
|
||||
All genders which may be assigned to
|
||||
electors.
|
||||
</p>
|
||||
</dd>
|
||||
{% endifmemberof %}
|
||||
|
|
@ -157,7 +184,8 @@ Intention
|
|||
{% ifmemberof canvassers analysts admin %}
|
||||
<dd>
|
||||
<p>
|
||||
Intentions of electors to vote for options elicited in visits.
|
||||
Intentions of electors to vote for options
|
||||
elicited in visits.
|
||||
</p>
|
||||
</dd>
|
||||
{% endifmemberof %}
|
||||
|
|
@ -171,7 +199,8 @@ Issue
|
|||
{% ifmemberof canvassers teamorganisers issueexperts analysts issueeditors admin %}
|
||||
<dd>
|
||||
<p>
|
||||
Issues believed to be of interest to electors, about which they may have questions.
|
||||
Issues believed to be of interest to electors,
|
||||
about which they may have questions.
|
||||
</p>
|
||||
</dd>
|
||||
{% endifmemberof %}
|
||||
|
|
@ -185,7 +214,8 @@ Option
|
|||
{% ifmemberof canvassers teamorganisers issueexperts analysts issueeditors admin %}
|
||||
<dd>
|
||||
<p>
|
||||
Options in the election or referendum being canvassed on
|
||||
Options in the election or referendum being
|
||||
canvassed on
|
||||
</p>
|
||||
</dd>
|
||||
{% endifmemberof %}
|
||||
|
|
@ -199,7 +229,9 @@ Role
|
|||
{% ifmemberof canvassers teamorganisers issueexperts analysts issueeditors admin %}
|
||||
<dd>
|
||||
<p>
|
||||
A role (essentially, the same as a group, but application layer rather than database layer) of which a user may be a member.
|
||||
A role (essentially, the same as a group, but
|
||||
application layer rather than database layer) of which a user
|
||||
may be a member.
|
||||
</p>
|
||||
</dd>
|
||||
{% endifmemberof %}
|
||||
|
|
@ -224,7 +256,8 @@ Visit
|
|||
{% ifmemberof canvassers teamorganisers issueexperts analysts issueeditors admin canvassers teamorganisers %}
|
||||
<dd>
|
||||
<p>
|
||||
All visits made by canvassers to dwellings in which opinions were recorded.
|
||||
All visits made by canvassers to dwellings in
|
||||
which opinions were recorded.
|
||||
</p>
|
||||
</dd>
|
||||
{% endifmemberof %}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
<!-- File form-addresses-Address.html generated 2018-07-05T10:14:18.448Z by adl.to-selmer-templates.
|
||||
<!-- File form-addresses-Address.html generated 2018-07-07T08:09:49.931Z by adl.to-selmer-templates.
|
||||
See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
||||
|
||||
|
||||
|
|
@ -12,7 +12,7 @@ See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
|||
{% csrf-field %}
|
||||
<p class='widget'>
|
||||
<label for='id'>
|
||||
id
|
||||
Id
|
||||
</label>
|
||||
{% ifmemberof admin %}
|
||||
<input id='id' name='id' type='string' value='{{record.id}}' maxlength='' size='16'/>
|
||||
|
|
@ -30,7 +30,7 @@ You are not permitted to view id of addresses
|
|||
</p>
|
||||
<p class='widget'>
|
||||
<label for='address'>
|
||||
address
|
||||
Address
|
||||
</label>
|
||||
{% ifmemberof admin %}
|
||||
<input id='address' name='address' type='string' value='{{record.address}}' maxlength='256' size='60'/>
|
||||
|
|
@ -48,7 +48,7 @@ You are not permitted to view address of addresses
|
|||
</p>
|
||||
<p class='widget'>
|
||||
<label for='postcode'>
|
||||
postcode
|
||||
Postcode
|
||||
</label>
|
||||
{% ifmemberof admin %}
|
||||
<input id='postcode' name='postcode' type='string' value='{{record.postcode}}' maxlength='16' size='16'/>
|
||||
|
|
@ -66,7 +66,7 @@ You are not permitted to view postcode of addresses
|
|||
</p>
|
||||
<p class='widget'>
|
||||
<label for='phone'>
|
||||
phone
|
||||
Phone
|
||||
</label>
|
||||
{% ifmemberof admin %}
|
||||
<input id='phone' name='phone' type='string' value='{{record.phone}}' maxlength='16' size='16'/>
|
||||
|
|
@ -84,7 +84,7 @@ You are not permitted to view phone of addresses
|
|||
</p>
|
||||
<p class='widget'>
|
||||
<label for='district_id'>
|
||||
district_id
|
||||
District_id
|
||||
</label>
|
||||
{% ifmemberof admin %}
|
||||
<span class='select-box' farside='districts' found='true'>
|
||||
|
|
@ -108,7 +108,7 @@ You are not permitted to view district_id of addresses
|
|||
</p>
|
||||
<p class='widget'>
|
||||
<label for='latitude'>
|
||||
latitude
|
||||
Latitude
|
||||
</label>
|
||||
{% ifmemberof admin %}
|
||||
<input id='latitude' name='latitude' type='number' value='{{record.latitude}}' maxlength='' size='16'/>
|
||||
|
|
@ -126,7 +126,7 @@ You are not permitted to view latitude of addresses
|
|||
</p>
|
||||
<p class='widget'>
|
||||
<label for='longitude'>
|
||||
longitude
|
||||
Longitude
|
||||
</label>
|
||||
{% ifmemberof admin %}
|
||||
<input id='longitude' name='longitude' type='number' value='{{record.longitude}}' maxlength='' size='16'/>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
<!-- File form-authorities-Authority.html generated 2018-07-05T10:14:18.468Z by adl.to-selmer-templates.
|
||||
<!-- File form-authorities-Authority.html generated 2018-07-07T08:09:49.951Z by adl.to-selmer-templates.
|
||||
See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
||||
|
||||
|
||||
|
|
@ -12,7 +12,7 @@ See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
|||
{% csrf-field %}
|
||||
<p class='widget'>
|
||||
<label for='id'>
|
||||
id
|
||||
Id
|
||||
</label>
|
||||
{% ifmemberof admin %}
|
||||
<input id='id' name='id' type='string' value='{{record.id}}' maxlength='' size='16'/>
|
||||
|
|
@ -30,7 +30,7 @@ You are not permitted to view id of authorities
|
|||
</p>
|
||||
<p class='widget'>
|
||||
<label for='request_token_uri'>
|
||||
request-token-uri
|
||||
Request-token-uri
|
||||
</label>
|
||||
{% ifmemberof admin %}
|
||||
<input id='request_token_uri' name='request_token_uri' type='string' value='{{record.request_token_uri}}' maxlength='256' size='60'/>
|
||||
|
|
@ -48,7 +48,7 @@ You are not permitted to view request_token_uri of authorities
|
|||
</p>
|
||||
<p class='widget'>
|
||||
<label for='access_token_uri'>
|
||||
access-token-uri
|
||||
Access-token-uri
|
||||
</label>
|
||||
{% ifmemberof admin %}
|
||||
<input id='access_token_uri' name='access_token_uri' type='string' value='{{record.access_token_uri}}' maxlength='256' size='60'/>
|
||||
|
|
@ -66,7 +66,7 @@ You are not permitted to view access_token_uri of authorities
|
|||
</p>
|
||||
<p class='widget'>
|
||||
<label for='authorize_uri'>
|
||||
authorize-uri
|
||||
Authorize-uri
|
||||
</label>
|
||||
{% ifmemberof admin %}
|
||||
<input id='authorize_uri' name='authorize_uri' type='string' value='{{record.authorize_uri}}' maxlength='256' size='60'/>
|
||||
|
|
@ -84,7 +84,7 @@ You are not permitted to view authorize_uri of authorities
|
|||
</p>
|
||||
<p class='widget'>
|
||||
<label for='consumer_key'>
|
||||
consumer-key
|
||||
Consumer-key
|
||||
</label>
|
||||
{% ifmemberof admin %}
|
||||
<input id='consumer_key' name='consumer_key' type='string' value='{{record.consumer_key}}' maxlength='32' size='32'/>
|
||||
|
|
@ -102,7 +102,7 @@ You are not permitted to view consumer_key of authorities
|
|||
</p>
|
||||
<p class='widget'>
|
||||
<label for='consumer_secret'>
|
||||
consumer-secret
|
||||
Consumer-secret
|
||||
</label>
|
||||
{% ifmemberof admin %}
|
||||
<input id='consumer_secret' name='consumer_secret' type='string' value='{{record.consumer_secret}}' maxlength='256' size='60'/>
|
||||
|
|
|
|||
|
|
@ -1,10 +1,11 @@
|
|||
{% extends "base.html" %}
|
||||
<!-- File form-canvassers-Canvasser.html generated 2018-07-05T10:14:18.471Z by adl.to-selmer-templates.
|
||||
<!-- File form-canvassers-Canvasser.html generated 2018-07-07T08:09:49.958Z by adl.to-selmer-templates.
|
||||
See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
||||
|
||||
|
||||
{% block extra-head %}
|
||||
|
||||
{% script "js/lib/node_modules/simplemde/dist/simplemde.min.js" %}
|
||||
{% style "js/lib/node_modules/simplemde/dist/simplemde.min.css" %}
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
<div id='content' class='edit'>
|
||||
|
|
@ -12,7 +13,7 @@ See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
|||
{% csrf-field %}
|
||||
<p class='widget'>
|
||||
<label for='id'>
|
||||
id
|
||||
Id
|
||||
</label>
|
||||
{% ifmemberof canvassers teamorganisers admin canvassers teamorganisers admin %}
|
||||
<input id='id' name='id' type='string' value='{{record.id}}' maxlength='' size='16'/>
|
||||
|
|
@ -30,7 +31,7 @@ You are not permitted to view id of canvassers
|
|||
</p>
|
||||
<p class='widget'>
|
||||
<label for='username'>
|
||||
username
|
||||
Username
|
||||
</label>
|
||||
{% ifmemberof canvassers teamorganisers admin canvassers teamorganisers admin %}
|
||||
<input id='username' name='username' type='string' value='{{record.username}}' maxlength='32' size='32'/>
|
||||
|
|
@ -48,7 +49,7 @@ You are not permitted to view username of canvassers
|
|||
</p>
|
||||
<p class='widget'>
|
||||
<label for='fullname'>
|
||||
fullname
|
||||
Fullname
|
||||
</label>
|
||||
{% ifmemberof canvassers teamorganisers admin canvassers teamorganisers admin %}
|
||||
<input id='fullname' name='fullname' type='string' value='{{record.fullname}}' maxlength='64' size='60'/>
|
||||
|
|
@ -66,7 +67,7 @@ You are not permitted to view fullname of canvassers
|
|||
</p>
|
||||
<p class='widget'>
|
||||
<label for='elector_id'>
|
||||
elector_id
|
||||
Elector_id
|
||||
</label>
|
||||
{% ifmemberof canvassers teamorganisers admin canvassers teamorganisers admin %}
|
||||
<span class='select-box' farside='electors' found='true'>
|
||||
|
|
@ -90,7 +91,7 @@ You are not permitted to view elector_id of canvassers
|
|||
</p>
|
||||
<p class='widget'>
|
||||
<label for='address_id'>
|
||||
address_id
|
||||
Address_id
|
||||
</label>
|
||||
{% ifmemberof canvassers teamorganisers admin canvassers teamorganisers admin %}
|
||||
<span class='select-box' farside='addresses' found='true'>
|
||||
|
|
@ -114,7 +115,7 @@ You are not permitted to view address_id of canvassers
|
|||
</p>
|
||||
<p class='widget'>
|
||||
<label for='phone'>
|
||||
phone
|
||||
Phone
|
||||
</label>
|
||||
{% ifmemberof canvassers teamorganisers admin canvassers teamorganisers admin %}
|
||||
<input id='phone' name='phone' type='string' value='{{record.phone}}' maxlength='16' size='16'/>
|
||||
|
|
@ -132,7 +133,7 @@ You are not permitted to view phone of canvassers
|
|||
</p>
|
||||
<p class='widget'>
|
||||
<label for='email'>
|
||||
email
|
||||
Email
|
||||
</label>
|
||||
{% ifmemberof canvassers teamorganisers admin canvassers teamorganisers admin %}
|
||||
<input id='email' name='email' type='string' value='{{record.email}}' maxlength='128' size='60'/>
|
||||
|
|
@ -150,7 +151,7 @@ You are not permitted to view email of canvassers
|
|||
</p>
|
||||
<p class='widget'>
|
||||
<label for='authority_id'>
|
||||
authority_id
|
||||
Authority_id
|
||||
</label>
|
||||
{% ifmemberof canvassers teamorganisers admin canvassers teamorganisers admin %}
|
||||
<span class='select-box' farside='authorities' found='true'>
|
||||
|
|
@ -174,7 +175,7 @@ You are not permitted to view authority_id of canvassers
|
|||
</p>
|
||||
<p class='widget'>
|
||||
<label for='authorised'>
|
||||
authorised
|
||||
Authorised
|
||||
</label>
|
||||
{% ifmemberof canvassers teamorganisers admin canvassers teamorganisers admin %}
|
||||
<input id='authorised' name='authorised' type='checkbox' value='{{record.authorised}}' maxlength='' size='16'/>
|
||||
|
|
@ -192,7 +193,7 @@ You are not permitted to view authorised of canvassers
|
|||
</p>
|
||||
<p class='widget'>
|
||||
<label for='roles'>
|
||||
roles
|
||||
Roles
|
||||
</label>
|
||||
{% ifmemberof canvassers teamorganisers admin canvassers teamorganisers admin %}
|
||||
<span class='select-box' farside='roles' found='true'>
|
||||
|
|
@ -249,6 +250,24 @@ To delete this canvassers record
|
|||
});
|
||||
}
|
||||
|
||||
var simplemde = new SimpleMDE({
|
||||
autosave: {
|
||||
enabled: true,
|
||||
uniqueId: "Smeagol-{{page}}",
|
||||
delay: 1000,
|
||||
},
|
||||
indentWithTabs: true,
|
||||
insertTexts: {
|
||||
horizontalRule: ["", "\n\n-----\n\n"],
|
||||
image: [""],
|
||||
link: ["[", "](http://)"],
|
||||
table: ["", "\n\n| Column 1 | Column 2 | Column 3 |\n| -------- | -------- | -------- |\n| Text | Text | Text |\n\n"],
|
||||
},
|
||||
showIcons: ["code"], //, "table"], - sadly, markdown-clj does not support tables
|
||||
spellChecker: true,
|
||||
status: ["autosave", "lines", "words", "cursor"]
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
{% endblock %}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
<!-- File form-districts-District.html generated 2018-07-05T10:14:18.436Z by adl.to-selmer-templates.
|
||||
<!-- File form-districts-District.html generated 2018-07-07T08:09:49.922Z by adl.to-selmer-templates.
|
||||
See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
||||
|
||||
|
||||
|
|
@ -12,7 +12,7 @@ See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
|||
{% csrf-field %}
|
||||
<p class='widget'>
|
||||
<label for='id'>
|
||||
id
|
||||
Id
|
||||
</label>
|
||||
{% ifmemberof admin %}
|
||||
<input id='id' name='id' type='string' value='{{record.id}}' maxlength='' size='16'/>
|
||||
|
|
@ -30,7 +30,7 @@ You are not permitted to view id of districts
|
|||
</p>
|
||||
<p class='widget'>
|
||||
<label for='name'>
|
||||
name
|
||||
Name
|
||||
</label>
|
||||
{% ifmemberof admin %}
|
||||
<input id='name' name='name' type='string' value='{{record.name}}' maxlength='64' size='60'/>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
<!-- File form-dwellings-Dwelling.html generated 2018-07-05T10:14:18.485Z by adl.to-selmer-templates.
|
||||
<!-- File form-dwellings-Dwelling.html generated 2018-07-07T08:09:49.973Z by adl.to-selmer-templates.
|
||||
See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
||||
|
||||
|
||||
|
|
@ -12,7 +12,7 @@ See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
|||
{% csrf-field %}
|
||||
<p class='widget'>
|
||||
<label for='id'>
|
||||
id
|
||||
Id
|
||||
</label>
|
||||
{% ifmemberof admin %}
|
||||
<input id='id' name='id' type='string' value='{{record.id}}' maxlength='' size='16'/>
|
||||
|
|
@ -30,7 +30,7 @@ You are not permitted to view id of dwellings
|
|||
</p>
|
||||
<p class='widget'>
|
||||
<label for='address_id'>
|
||||
address_id
|
||||
Address_id
|
||||
</label>
|
||||
{% ifmemberof admin %}
|
||||
<span class='select-box' farside='addresses' found='true'>
|
||||
|
|
@ -54,7 +54,7 @@ You are not permitted to view address_id of dwellings
|
|||
</p>
|
||||
<p class='widget'>
|
||||
<label for='sub_address'>
|
||||
sub-address
|
||||
Sub-address
|
||||
</label>
|
||||
{% ifmemberof admin %}
|
||||
<input id='sub_address' name='sub_address' type='string' value='{{record.sub_address}}' maxlength='32' size='32'/>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
<!-- File form-electors-Elector.html generated 2018-07-05T10:14:18.465Z by adl.to-selmer-templates.
|
||||
<!-- File form-electors-Elector.html generated 2018-07-07T08:09:49.947Z by adl.to-selmer-templates.
|
||||
See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
||||
|
||||
|
||||
|
|
@ -12,7 +12,7 @@ See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
|||
{% csrf-field %}
|
||||
<p class='widget'>
|
||||
<label for='id'>
|
||||
id
|
||||
Id
|
||||
</label>
|
||||
{% ifmemberof admin %}
|
||||
<input id='id' name='id' type='string' value='{{record.id}}' maxlength='' size='16'/>
|
||||
|
|
@ -30,7 +30,7 @@ You are not permitted to view id of electors
|
|||
</p>
|
||||
<p class='widget'>
|
||||
<label for='name'>
|
||||
name
|
||||
Name
|
||||
</label>
|
||||
{% ifmemberof admin %}
|
||||
<input id='name' name='name' type='string' value='{{record.name}}' maxlength='64' size='60'/>
|
||||
|
|
@ -48,7 +48,7 @@ You are not permitted to view name of electors
|
|||
</p>
|
||||
<p class='widget'>
|
||||
<label for='dwelling_id'>
|
||||
dwelling_id
|
||||
Dwelling_id
|
||||
</label>
|
||||
{% ifmemberof admin %}
|
||||
<span class='select-box' farside='dwellings' found='true'>
|
||||
|
|
@ -72,7 +72,7 @@ You are not permitted to view dwelling_id of electors
|
|||
</p>
|
||||
<p class='widget'>
|
||||
<label for='phone'>
|
||||
phone
|
||||
Phone
|
||||
</label>
|
||||
{% ifmemberof admin %}
|
||||
<input id='phone' name='phone' type='string' value='{{record.phone}}' maxlength='16' size='16'/>
|
||||
|
|
@ -90,7 +90,7 @@ You are not permitted to view phone of electors
|
|||
</p>
|
||||
<p class='widget'>
|
||||
<label for='email'>
|
||||
email
|
||||
Email
|
||||
</label>
|
||||
{% ifmemberof admin %}
|
||||
<input id='email' name='email' type='string' value='{{record.email}}' maxlength='128' size='60'/>
|
||||
|
|
@ -108,7 +108,7 @@ You are not permitted to view email of electors
|
|||
</p>
|
||||
<p class='widget'>
|
||||
<label for='gender'>
|
||||
gender
|
||||
Gender
|
||||
</label>
|
||||
{% ifmemberof admin %}
|
||||
<span class='select-box' farside='genders' found='true'>
|
||||
|
|
|
|||
205
resources/templates/auto/form-events-Events.html
Normal file
205
resources/templates/auto/form-events-Events.html
Normal file
|
|
@ -0,0 +1,205 @@
|
|||
{% extends "base.html" %}
|
||||
<!-- File form-events-Events.html generated 2018-07-07T08:09:49.954Z by adl.to-selmer-templates.
|
||||
See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
||||
|
||||
|
||||
{% block extra-head %}
|
||||
{% script "js/lib/node_modules/simplemde/dist/simplemde.min.js" %}
|
||||
{% style "js/lib/node_modules/simplemde/dist/simplemde.min.css" %}
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
<div id='content' class='edit'>
|
||||
<form action='{{servlet-context}}/form-events-Events' method='POST'>
|
||||
{% csrf-field %}
|
||||
<p class='widget'>
|
||||
<label for='id'>
|
||||
Id
|
||||
</label>
|
||||
{% ifmemberof teamorganisers admin %}
|
||||
<input id='id' name='id' type='string' value='{{record.id}}' maxlength='' size='16'/>
|
||||
{% else %}
|
||||
{% ifmemberof 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 events
|
||||
</span>
|
||||
{% endifmemberof %}
|
||||
{% endifmemberof %}
|
||||
</p>
|
||||
<p class='widget'>
|
||||
<label for='name'>
|
||||
Name
|
||||
</label>
|
||||
{% ifmemberof teamorganisers admin %}
|
||||
<input id='name' name='name' type='string' value='{{record.name}}' maxlength='64' size='60'/>
|
||||
{% else %}
|
||||
{% ifmemberof canvassers teamorganisers issueexperts analysts issueeditors admin %}
|
||||
<span id='name' name='name' class='pseudo-widget disabled'>
|
||||
{{record.name}}
|
||||
</span>
|
||||
{% else %}
|
||||
<span id='name' name='name' class='pseudo-widget not-authorised'>
|
||||
You are not permitted to view name of events
|
||||
</span>
|
||||
{% endifmemberof %}
|
||||
{% endifmemberof %}
|
||||
</p>
|
||||
<p class='widget'>
|
||||
<label for='teams'>
|
||||
Teams
|
||||
</label>
|
||||
{% ifmemberof teamorganisers admin %}
|
||||
<span class='select-box' farside='teams' found='true'>
|
||||
<input name='teams_search_box' onchange='$.getJSON("/auto/json/seach-strings-teams?name=" + teams_search_box.text, null, function (data) {updateMenuOptions("teams", "id", ["name"], data);})'/>
|
||||
<br/>
|
||||
<select id='teams' name='teams' multiple='multiple'>
|
||||
{% for r in teams %}<option value='{{r.id}}' {% ifequal record.teams r.id%}selected{% endifequal %}>{{r.name}}</option>{% endfor %}
|
||||
</select>
|
||||
</span>
|
||||
{% else %}
|
||||
{% ifmemberof canvassers teamorganisers issueexperts analysts issueeditors admin %}
|
||||
<span id='teams' name='teams' class='pseudo-widget disabled'>
|
||||
{{record.teams}}
|
||||
</span>
|
||||
{% else %}
|
||||
<span id='teams' name='teams' class='pseudo-widget not-authorised'>
|
||||
You are not permitted to view teams of events
|
||||
</span>
|
||||
{% endifmemberof %}
|
||||
{% endifmemberof %}
|
||||
</p>
|
||||
<p class='widget'>
|
||||
<label for='date'>
|
||||
Date
|
||||
</label>
|
||||
{% ifmemberof teamorganisers admin %}
|
||||
<input id='date' name='date' type='date' value='{{record.date}}' maxlength='' size='16'/>
|
||||
{% else %}
|
||||
{% ifmemberof 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 events
|
||||
</span>
|
||||
{% endifmemberof %}
|
||||
{% endifmemberof %}
|
||||
</p>
|
||||
<p class='widget'>
|
||||
<label for='time'>
|
||||
Time
|
||||
</label>
|
||||
{% ifmemberof teamorganisers admin %}
|
||||
<input id='time' name='time' type='time' value='{{record.time}}' maxlength='' size='16'/>
|
||||
{% else %}
|
||||
{% ifmemberof canvassers teamorganisers issueexperts analysts issueeditors admin %}
|
||||
<span id='time' name='time' class='pseudo-widget disabled'>
|
||||
{{record.time}}
|
||||
</span>
|
||||
{% else %}
|
||||
<span id='time' name='time' class='pseudo-widget not-authorised'>
|
||||
You are not permitted to view time of events
|
||||
</span>
|
||||
{% endifmemberof %}
|
||||
{% endifmemberof %}
|
||||
</p>
|
||||
<p class='widget'>
|
||||
<label for='decription'>
|
||||
Decription
|
||||
</label>
|
||||
{% ifmemberof teamorganisers admin %}
|
||||
<textarea rows='8' cols='60' id='decription' name='decription'>
|
||||
{{record.decription}}
|
||||
</textarea>
|
||||
{% else %}
|
||||
{% ifmemberof canvassers teamorganisers issueexperts analysts issueeditors admin %}
|
||||
<span id='decription' name='decription' class='pseudo-widget disabled'>
|
||||
{{record.decription}}
|
||||
</span>
|
||||
{% else %}
|
||||
<span id='decription' name='decription' class='pseudo-widget not-authorised'>
|
||||
You are not permitted to view decription of events
|
||||
</span>
|
||||
{% endifmemberof %}
|
||||
{% endifmemberof %}
|
||||
</p>
|
||||
<p class='widget'>
|
||||
<label for='cancelled'>
|
||||
Cancelled
|
||||
</label>
|
||||
{% ifmemberof teamorganisers admin %}
|
||||
<input id='cancelled' name='cancelled' type='checkbox' value='{{record.cancelled}}' maxlength='' size='16'/>
|
||||
{% else %}
|
||||
{% ifmemberof canvassers teamorganisers issueexperts analysts issueeditors admin %}
|
||||
<span id='cancelled' name='cancelled' class='pseudo-widget disabled'>
|
||||
{{record.cancelled}}
|
||||
</span>
|
||||
{% else %}
|
||||
<span id='cancelled' name='cancelled' class='pseudo-widget not-authorised'>
|
||||
You are not permitted to view cancelled of events
|
||||
</span>
|
||||
{% endifmemberof %}
|
||||
{% endifmemberof %}
|
||||
</p>
|
||||
{% ifmemberof teamorganisers admin %}
|
||||
<p class='widget action-safe'>
|
||||
<label for='save-button' class='action-safe'>
|
||||
To save this events record
|
||||
</label>
|
||||
<input id='save-button' name='save-button' class='action-safe' type='submit' value='Save!'/>
|
||||
</p>
|
||||
{% endifmemberof %}
|
||||
{% ifmemberof teamorganisers admin %}
|
||||
<p class='widget action-dangerous'>
|
||||
<label for='delete-button' class='action-dangerous'>
|
||||
To delete this events record
|
||||
</label>
|
||||
<input id='delete-button' name='delete-button' class='action-dangerous' type='submit' value='Delete!'/>
|
||||
</p>
|
||||
{% endifmemberof %}
|
||||
</form>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
{% block extra-tail %}
|
||||
<script type='text/javascript'>
|
||||
/**
|
||||
* update the select menu with id `wid` from this `data` whose fields include
|
||||
* this `entity_key` and these `fields`
|
||||
*/
|
||||
function updateMenuOptions(wid, entity_key, fields, data){
|
||||
$('#' + wid).children().filter(function(){
|
||||
return $(this).attr('selected') === undefined;
|
||||
}).remove().end();
|
||||
|
||||
$.each(data, function(key, entry){
|
||||
$('#' + wid).append(
|
||||
$('<option></option>').attr('value', key).text(entry));
|
||||
});
|
||||
}
|
||||
|
||||
var simplemde = new SimpleMDE({
|
||||
autosave: {
|
||||
enabled: true,
|
||||
uniqueId: "Smeagol-{{page}}",
|
||||
delay: 1000,
|
||||
},
|
||||
indentWithTabs: true,
|
||||
insertTexts: {
|
||||
horizontalRule: ["", "\n\n-----\n\n"],
|
||||
image: [""],
|
||||
link: ["[", "](http://)"],
|
||||
table: ["", "\n\n| Column 1 | Column 2 | Column 3 |\n| -------- | -------- | -------- |\n| Text | Text | Text |\n\n"],
|
||||
},
|
||||
showIcons: ["code"], //, "table"], - sadly, markdown-clj does not support tables
|
||||
spellChecker: true,
|
||||
status: ["autosave", "lines", "words", "cursor"]
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
{% endblock %}
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
<!-- File form-followupactions-Followupaction.html generated 2018-07-05T10:14:18.488Z by adl.to-selmer-templates.
|
||||
<!-- File form-followupactions-Followupaction.html generated 2018-07-07T08:09:49.976Z by adl.to-selmer-templates.
|
||||
See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
||||
|
||||
|
||||
|
|
@ -13,7 +13,7 @@ See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
|||
{% csrf-field %}
|
||||
<p class='widget'>
|
||||
<label for='id'>
|
||||
id
|
||||
Id
|
||||
</label>
|
||||
{% ifmemberof admin %}
|
||||
<input id='id' name='id' type='string' value='{{record.id}}' maxlength='' size='16'/>
|
||||
|
|
@ -31,7 +31,7 @@ You are not permitted to view id of followupactions
|
|||
</p>
|
||||
<p class='widget'>
|
||||
<label for='request_id'>
|
||||
request_id
|
||||
Request_id
|
||||
</label>
|
||||
{% ifmemberof admin %}
|
||||
<span class='select-box' farside='followuprequests' found='true'>
|
||||
|
|
@ -55,7 +55,7 @@ You are not permitted to view request_id of followupactions
|
|||
</p>
|
||||
<p class='widget'>
|
||||
<label for='actor'>
|
||||
actor
|
||||
Actor
|
||||
</label>
|
||||
{% ifmemberof admin %}
|
||||
<span class='select-box' farside='canvassers' found='true'>
|
||||
|
|
@ -79,7 +79,7 @@ You are not permitted to view actor of followupactions
|
|||
</p>
|
||||
<p class='widget'>
|
||||
<label for='date'>
|
||||
date
|
||||
Date
|
||||
</label>
|
||||
{% ifmemberof admin %}
|
||||
<input id='date' name='date' type='string' value='{{record.date}}' maxlength='' size='16'/>
|
||||
|
|
@ -97,7 +97,7 @@ You are not permitted to view date of followupactions
|
|||
</p>
|
||||
<p class='widget'>
|
||||
<label for='notes'>
|
||||
notes
|
||||
Notes
|
||||
</label>
|
||||
{% ifmemberof admin %}
|
||||
<textarea rows='8' cols='60' id='notes' name='notes'>
|
||||
|
|
@ -117,7 +117,7 @@ You are not permitted to view notes of followupactions
|
|||
</p>
|
||||
<p class='widget'>
|
||||
<label for='closed'>
|
||||
closed
|
||||
Closed
|
||||
</label>
|
||||
{% ifmemberof admin %}
|
||||
<input id='closed' name='closed' type='checkbox' value='{{record.closed}}' maxlength='' size='16'/>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
<!-- File form-followupmethods-Followupmethod.html generated 2018-07-05T10:14:18.491Z by adl.to-selmer-templates.
|
||||
<!-- File form-followupmethods-Followupmethod.html generated 2018-07-07T08:09:49.979Z by adl.to-selmer-templates.
|
||||
See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
||||
|
||||
|
||||
|
|
@ -12,7 +12,7 @@ See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
|||
{% csrf-field %}
|
||||
<p class='widget'>
|
||||
<label for='id'>
|
||||
id
|
||||
Id
|
||||
</label>
|
||||
{% ifmemberof admin %}
|
||||
<input id='id' name='id' type='string' value='{{record.id}}' maxlength='' size='16'/>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
<!-- File form-followuprequests-Followuprequest.html generated 2018-07-05T10:14:18.440Z by adl.to-selmer-templates.
|
||||
<!-- File form-followuprequests-Followuprequest.html generated 2018-07-07T08:09:49.925Z by adl.to-selmer-templates.
|
||||
See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
||||
|
||||
|
||||
|
|
@ -12,7 +12,7 @@ See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
|||
{% csrf-field %}
|
||||
<p class='widget'>
|
||||
<label for='id'>
|
||||
id
|
||||
Id
|
||||
</label>
|
||||
{% ifmemberof admin %}
|
||||
<input id='id' name='id' type='string' value='{{record.id}}' maxlength='' size='16'/>
|
||||
|
|
@ -30,7 +30,7 @@ You are not permitted to view id of followuprequests
|
|||
</p>
|
||||
<p class='widget'>
|
||||
<label for='elector_id'>
|
||||
elector_id
|
||||
Elector_id
|
||||
</label>
|
||||
{% ifmemberof admin %}
|
||||
<span class='select-box' farside='electors' found='true'>
|
||||
|
|
@ -54,7 +54,7 @@ You are not permitted to view elector_id of followuprequests
|
|||
</p>
|
||||
<p class='widget'>
|
||||
<label for='visit_id'>
|
||||
visit_id
|
||||
Visit_id
|
||||
</label>
|
||||
{% ifmemberof admin %}
|
||||
<span class='select-box' farside='visits' found='true'>
|
||||
|
|
@ -78,7 +78,7 @@ You are not permitted to view visit_id of followuprequests
|
|||
</p>
|
||||
<p class='widget'>
|
||||
<label for='issue_id'>
|
||||
issue_id
|
||||
Issue_id
|
||||
</label>
|
||||
{% ifmemberof admin %}
|
||||
<span class='select-box' farside='issues' found='true'>
|
||||
|
|
@ -100,7 +100,7 @@ You are not permitted to view issue_id of followuprequests
|
|||
</p>
|
||||
<p class='widget'>
|
||||
<label for='method_id'>
|
||||
method_id
|
||||
Method_id
|
||||
</label>
|
||||
{% ifmemberof admin %}
|
||||
<span class='select-box' farside='followupmethods' found='true'>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
<!-- File form-genders-Gender.html generated 2018-07-05T10:14:18.432Z by adl.to-selmer-templates.
|
||||
<!-- File form-genders-Gender.html generated 2018-07-07T08:09:49.918Z by adl.to-selmer-templates.
|
||||
See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
||||
|
||||
|
||||
|
|
@ -12,7 +12,7 @@ See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
|||
{% csrf-field %}
|
||||
<p class='widget'>
|
||||
<label for='id'>
|
||||
id
|
||||
Id
|
||||
</label>
|
||||
{% ifmemberof admin %}
|
||||
<input id='id' name='id' type='string' value='{{record.id}}' maxlength='' size='16'/>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
<!-- File form-intentions-Intention.html generated 2018-07-05T10:14:18.481Z by adl.to-selmer-templates.
|
||||
<!-- File form-intentions-Intention.html generated 2018-07-07T08:09:49.968Z by adl.to-selmer-templates.
|
||||
See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
||||
|
||||
|
||||
|
|
@ -12,7 +12,7 @@ See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
|||
{% csrf-field %}
|
||||
<p class='widget'>
|
||||
<label for='visit_id'>
|
||||
visit_id
|
||||
Visit_id
|
||||
</label>
|
||||
{% ifmemberof admin %}
|
||||
<span class='select-box' farside='visits' found='true'>
|
||||
|
|
@ -36,7 +36,7 @@ You are not permitted to view visit_id of intentions
|
|||
</p>
|
||||
<p class='widget'>
|
||||
<label for='elector_id'>
|
||||
elector_id
|
||||
Elector_id
|
||||
</label>
|
||||
{% ifmemberof admin %}
|
||||
<span class='select-box' farside='electors' found='true'>
|
||||
|
|
@ -60,7 +60,7 @@ You are not permitted to view elector_id of intentions
|
|||
</p>
|
||||
<p class='widget'>
|
||||
<label for='option_id'>
|
||||
option_id
|
||||
Option_id
|
||||
</label>
|
||||
{% ifmemberof admin %}
|
||||
<span class='select-box' farside='options' found='true'>
|
||||
|
|
@ -82,7 +82,7 @@ You are not permitted to view option_id of intentions
|
|||
</p>
|
||||
<p class='widget'>
|
||||
<label for='locality'>
|
||||
locality
|
||||
Locality
|
||||
</label>
|
||||
{% ifmemberof admin %}
|
||||
<input id='locality' name='locality' type='number' value='{{record.locality}}' maxlength='' size='16'/>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
<!-- File form-issues-Issue.html generated 2018-07-05T10:14:18.452Z by adl.to-selmer-templates.
|
||||
<!-- File form-issues-Issue.html generated 2018-07-07T08:09:49.935Z by adl.to-selmer-templates.
|
||||
See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
||||
|
||||
|
||||
|
|
@ -13,7 +13,7 @@ See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
|||
{% csrf-field %}
|
||||
<p class='widget'>
|
||||
<label for='id'>
|
||||
id
|
||||
Id
|
||||
</label>
|
||||
{% ifmemberof issueeditors admin %}
|
||||
<input id='id' name='id' type='string' value='{{record.id}}' maxlength='' size='16'/>
|
||||
|
|
@ -31,7 +31,7 @@ You are not permitted to view id of issues
|
|||
</p>
|
||||
<p class='widget'>
|
||||
<label for='url'>
|
||||
url
|
||||
Url
|
||||
</label>
|
||||
{% ifmemberof issueeditors admin %}
|
||||
<input id='url' name='url' type='string' value='{{record.url}}' maxlength='256' size='60'/>
|
||||
|
|
@ -49,7 +49,7 @@ You are not permitted to view url of issues
|
|||
</p>
|
||||
<p class='widget'>
|
||||
<label for='current'>
|
||||
current
|
||||
Current
|
||||
</label>
|
||||
{% ifmemberof issueeditors admin %}
|
||||
<input id='current' name='current' type='checkbox' value='{{record.current}}' maxlength='' size='16'/>
|
||||
|
|
@ -67,7 +67,7 @@ You are not permitted to view current of issues
|
|||
</p>
|
||||
<p class='widget'>
|
||||
<label for='brief'>
|
||||
brief
|
||||
Brief
|
||||
</label>
|
||||
{% ifmemberof issueeditors admin %}
|
||||
<textarea rows='8' cols='60' id='brief' name='brief'>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
<!-- File form-options-Option.html generated 2018-07-05T10:14:18.481Z by adl.to-selmer-templates.
|
||||
<!-- File form-options-Option.html generated 2018-07-07T08:09:49.967Z by adl.to-selmer-templates.
|
||||
See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
||||
|
||||
|
||||
|
|
@ -12,7 +12,7 @@ See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
|||
{% csrf-field %}
|
||||
<p class='widget'>
|
||||
<label for='id'>
|
||||
id
|
||||
Id
|
||||
</label>
|
||||
{% ifmemberof admin %}
|
||||
<input id='id' name='id' type='string' value='{{record.id}}' maxlength='' size='16'/>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
<!-- File form-roles-Role.html generated 2018-07-05T10:14:18.454Z by adl.to-selmer-templates.
|
||||
<!-- File form-roles-Role.html generated 2018-07-07T08:09:49.937Z by adl.to-selmer-templates.
|
||||
See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
||||
|
||||
|
||||
|
|
@ -12,7 +12,7 @@ See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
|||
{% csrf-field %}
|
||||
<p class='widget'>
|
||||
<label for='id'>
|
||||
id
|
||||
Id
|
||||
</label>
|
||||
{% ifmemberof admin %}
|
||||
<input id='id' name='id' type='string' value='{{record.id}}' maxlength='' size='16'/>
|
||||
|
|
@ -30,7 +30,7 @@ You are not permitted to view id of roles
|
|||
</p>
|
||||
<p class='widget'>
|
||||
<label for='name'>
|
||||
name
|
||||
Name
|
||||
</label>
|
||||
{% ifmemberof admin %}
|
||||
<input id='name' name='name' type='string' value='{{record.name}}' maxlength='64' size='60'/>
|
||||
|
|
@ -48,7 +48,7 @@ You are not permitted to view name of roles
|
|||
</p>
|
||||
<p class='widget'>
|
||||
<label for='members'>
|
||||
members
|
||||
Members
|
||||
</label>
|
||||
{% ifmemberof admin %}
|
||||
<span class='select-box' farside='canvassers' found='true'>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
<!-- File form-teams-Team.html generated 2018-07-05T10:14:18.461Z by adl.to-selmer-templates.
|
||||
<!-- File form-teams-Team.html generated 2018-07-07T08:09:49.943Z by adl.to-selmer-templates.
|
||||
See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
||||
|
||||
|
||||
|
|
@ -12,7 +12,7 @@ See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
|||
{% csrf-field %}
|
||||
<p class='widget'>
|
||||
<label for='id'>
|
||||
id
|
||||
Id
|
||||
</label>
|
||||
{% ifmemberof teamorganisers admin teamorganisers admin %}
|
||||
<input id='id' name='id' type='string' value='{{record.id}}' maxlength='' size='16'/>
|
||||
|
|
@ -30,7 +30,7 @@ You are not permitted to view id of teams
|
|||
</p>
|
||||
<p class='widget'>
|
||||
<label for='name'>
|
||||
name
|
||||
Name
|
||||
</label>
|
||||
{% ifmemberof teamorganisers admin teamorganisers admin %}
|
||||
<input id='name' name='name' type='string' value='{{record.name}}' maxlength='64' size='60'/>
|
||||
|
|
@ -48,7 +48,7 @@ You are not permitted to view name of teams
|
|||
</p>
|
||||
<p class='widget'>
|
||||
<label for='district_id'>
|
||||
district_id
|
||||
District_id
|
||||
</label>
|
||||
{% ifmemberof teamorganisers admin teamorganisers admin %}
|
||||
<span class='select-box' farside='districts' found='true'>
|
||||
|
|
@ -72,7 +72,7 @@ You are not permitted to view district_id of teams
|
|||
</p>
|
||||
<p class='widget'>
|
||||
<label for='latitude'>
|
||||
latitude
|
||||
Latitude
|
||||
</label>
|
||||
{% ifmemberof teamorganisers admin teamorganisers admin %}
|
||||
<input id='latitude' name='latitude' type='number' value='{{record.latitude}}' maxlength='' size='16'/>
|
||||
|
|
@ -90,7 +90,7 @@ You are not permitted to view latitude of teams
|
|||
</p>
|
||||
<p class='widget'>
|
||||
<label for='members'>
|
||||
members
|
||||
Members
|
||||
</label>
|
||||
{% ifmemberof teamorganisers admin teamorganisers admin %}
|
||||
<span class='select-box' farside='canvassers' found='true'>
|
||||
|
|
@ -114,7 +114,7 @@ You are not permitted to view members of teams
|
|||
</p>
|
||||
<p class='widget'>
|
||||
<label for='organisers'>
|
||||
organisers
|
||||
Organisers
|
||||
</label>
|
||||
{% ifmemberof teamorganisers admin teamorganisers admin %}
|
||||
<span class='select-box' farside='canvassers' found='true'>
|
||||
|
|
@ -138,7 +138,7 @@ You are not permitted to view organisers of teams
|
|||
</p>
|
||||
<p class='widget'>
|
||||
<label for='longitude'>
|
||||
longitude
|
||||
Longitude
|
||||
</label>
|
||||
{% ifmemberof teamorganisers admin teamorganisers admin %}
|
||||
<input id='longitude' name='longitude' type='number' value='{{record.longitude}}' maxlength='' size='16'/>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
<!-- File form-visits-Visit.html generated 2018-07-05T10:14:18.457Z by adl.to-selmer-templates.
|
||||
<!-- File form-visits-Visit.html generated 2018-07-07T08:09:49.940Z by adl.to-selmer-templates.
|
||||
See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
||||
|
||||
|
||||
|
|
@ -12,7 +12,7 @@ See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
|||
{% csrf-field %}
|
||||
<p class='widget'>
|
||||
<label for='id'>
|
||||
id
|
||||
Id
|
||||
</label>
|
||||
{% ifmemberof admin %}
|
||||
<input id='id' name='id' type='string' value='{{record.id}}' maxlength='' size='16'/>
|
||||
|
|
@ -30,7 +30,7 @@ You are not permitted to view id of visits
|
|||
</p>
|
||||
<p class='widget'>
|
||||
<label for='address_id'>
|
||||
address_id
|
||||
Address_id
|
||||
</label>
|
||||
{% ifmemberof admin %}
|
||||
<span class='select-box' farside='addresses' found='true'>
|
||||
|
|
@ -54,7 +54,7 @@ You are not permitted to view address_id of visits
|
|||
</p>
|
||||
<p class='widget'>
|
||||
<label for='canvasser_id'>
|
||||
canvasser_id
|
||||
Canvasser_id
|
||||
</label>
|
||||
{% ifmemberof admin %}
|
||||
<span class='select-box' farside='canvassers' found='true'>
|
||||
|
|
@ -78,7 +78,7 @@ You are not permitted to view canvasser_id of visits
|
|||
</p>
|
||||
<p class='widget'>
|
||||
<label for='date'>
|
||||
date
|
||||
Date
|
||||
</label>
|
||||
{% ifmemberof admin %}
|
||||
<input id='date' name='date' type='string' value='{{record.date}}' maxlength='' size='16'/>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
<!-- File list-addresses-Addresses.html generated 2018-07-05T10:14:18.471Z by adl.to-selmer-templates.
|
||||
<!-- File list-addresses-Addresses.html generated 2018-07-07T08:09:49.953Z by adl.to-selmer-templates.
|
||||
See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
||||
|
||||
|
||||
|
|
@ -45,25 +45,25 @@ Add a new Address
|
|||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
id
|
||||
Id
|
||||
</th>
|
||||
<th>
|
||||
address
|
||||
Address
|
||||
</th>
|
||||
<th>
|
||||
postcode
|
||||
Postcode
|
||||
</th>
|
||||
<th>
|
||||
phone
|
||||
Phone
|
||||
</th>
|
||||
<th>
|
||||
district_id
|
||||
District_id
|
||||
</th>
|
||||
<th>
|
||||
latitude
|
||||
Latitude
|
||||
</th>
|
||||
<th>
|
||||
longitude
|
||||
Longitude
|
||||
</th>
|
||||
<th>
|
||||
|
||||
|
|
@ -74,10 +74,10 @@ longitude
|
|||
<input id='id' type='text' name='id' value='{{ params.id }}'/>
|
||||
</th>
|
||||
<th>
|
||||
<input id='address' type='text' name='address' value='{{ params.address }}'/>
|
||||
<input id='Address' type='text' name='Address' value='{{ params.Address }}'/>
|
||||
</th>
|
||||
<th>
|
||||
<input id='postcode' type='text' name='postcode' value='{{ params.postcode }}'/>
|
||||
<input id='Postcode' type='text' name='Postcode' value='{{ params.Postcode }}'/>
|
||||
</th>
|
||||
<th>
|
||||
<input id='phone' type='text' name='phone' value='{{ params.phone }}'/>
|
||||
|
|
@ -103,10 +103,10 @@ longitude
|
|||
{{ record.id }}
|
||||
</td>
|
||||
<td>
|
||||
{{ record.address }}
|
||||
{{ record. }}
|
||||
</td>
|
||||
<td>
|
||||
{{ record.postcode }}
|
||||
{{ record. }}
|
||||
</td>
|
||||
<td>
|
||||
{{ record.phone }}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
<!-- File list-authorities-Authorities.html generated 2018-07-05T10:14:18.439Z by adl.to-selmer-templates.
|
||||
<!-- File list-authorities-Authorities.html generated 2018-07-07T08:09:49.924Z by adl.to-selmer-templates.
|
||||
See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
||||
|
||||
|
||||
|
|
@ -45,16 +45,16 @@ Add a new Authority
|
|||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
id
|
||||
Id
|
||||
</th>
|
||||
<th>
|
||||
request-token-uri
|
||||
Request-token-uri
|
||||
</th>
|
||||
<th>
|
||||
access-token-uri
|
||||
Access-token-uri
|
||||
</th>
|
||||
<th>
|
||||
authorize-uri
|
||||
Authorize-uri
|
||||
</th>
|
||||
<th>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
<!-- File list-canvassers-Canvassers.html generated 2018-07-05T10:14:18.485Z by adl.to-selmer-templates.
|
||||
<!-- File list-canvassers-Canvassers.html generated 2018-07-07T08:09:49.972Z by adl.to-selmer-templates.
|
||||
See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
||||
|
||||
|
||||
|
|
@ -45,31 +45,31 @@ Add a new Canvasser
|
|||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
id
|
||||
Id
|
||||
</th>
|
||||
<th>
|
||||
username
|
||||
Username
|
||||
</th>
|
||||
<th>
|
||||
fullname
|
||||
Fullname
|
||||
</th>
|
||||
<th>
|
||||
elector_id
|
||||
Elector_id
|
||||
</th>
|
||||
<th>
|
||||
address_id
|
||||
Address_id
|
||||
</th>
|
||||
<th>
|
||||
phone
|
||||
Phone
|
||||
</th>
|
||||
<th>
|
||||
email
|
||||
Email
|
||||
</th>
|
||||
<th>
|
||||
authority_id
|
||||
Authority_id
|
||||
</th>
|
||||
<th>
|
||||
authorised
|
||||
Authorised
|
||||
</th>
|
||||
<th>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
<!-- File list-districts-Districts.html generated 2018-07-05T10:14:18.479Z by adl.to-selmer-templates.
|
||||
<!-- File list-districts-Districts.html generated 2018-07-07T08:09:49.965Z by adl.to-selmer-templates.
|
||||
See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
||||
|
||||
|
||||
|
|
@ -45,10 +45,10 @@ Add a new District
|
|||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
id
|
||||
Id
|
||||
</th>
|
||||
<th>
|
||||
name
|
||||
Name
|
||||
</th>
|
||||
<th>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
<!-- File list-dwellings-Dwellings.html generated 2018-07-05T10:14:18.468Z by adl.to-selmer-templates.
|
||||
<!-- File list-dwellings-Dwellings.html generated 2018-07-07T08:09:49.950Z by adl.to-selmer-templates.
|
||||
See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
||||
|
||||
|
||||
|
|
@ -45,13 +45,13 @@ Add a new Dwelling
|
|||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
id
|
||||
Id
|
||||
</th>
|
||||
<th>
|
||||
address_id
|
||||
Address_id
|
||||
</th>
|
||||
<th>
|
||||
sub-address
|
||||
Sub-address
|
||||
</th>
|
||||
<th>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
<!-- File list-electors-Electors.html generated 2018-07-05T10:14:18.451Z by adl.to-selmer-templates.
|
||||
<!-- File list-electors-Electors.html generated 2018-07-07T08:09:49.934Z by adl.to-selmer-templates.
|
||||
See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
||||
|
||||
|
||||
|
|
@ -45,22 +45,22 @@ Add a new Elector
|
|||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
id
|
||||
Id
|
||||
</th>
|
||||
<th>
|
||||
name
|
||||
Name
|
||||
</th>
|
||||
<th>
|
||||
dwelling_id
|
||||
Dwelling_id
|
||||
</th>
|
||||
<th>
|
||||
phone
|
||||
Phone
|
||||
</th>
|
||||
<th>
|
||||
email
|
||||
Email
|
||||
</th>
|
||||
<th>
|
||||
gender
|
||||
Gender
|
||||
</th>
|
||||
<th>
|
||||
|
||||
|
|
|
|||
148
resources/templates/auto/list-events-Events.html
Normal file
148
resources/templates/auto/list-events-Events.html
Normal file
|
|
@ -0,0 +1,148 @@
|
|||
{% extends "base.html" %}
|
||||
<!-- File list-events-Events.html generated 2018-07-07T08:09:49.965Z by adl.to-selmer-templates.
|
||||
See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
||||
|
||||
|
||||
{% block back-links %}
|
||||
<div>
|
||||
<div class='back-link-container'>
|
||||
{% ifequal params.offset "0" %}
|
||||
<a id='back-link' class='back-link' href='{{servlet-context}}/admin'>
|
||||
Back
|
||||
</a>
|
||||
{% else %}
|
||||
<a id='prev-selector' class='back-link'>
|
||||
Previous
|
||||
</a>
|
||||
{% endifunequal %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
{% block big-links %}
|
||||
<div>
|
||||
<div class='big-link-container'>
|
||||
<a id='next-selector' role='button' class='big-link'>
|
||||
Next
|
||||
</a>
|
||||
</div>
|
||||
{% ifmemberof teamorganisers admin %}
|
||||
<div class='big-link-container'>
|
||||
<a href='form-events-Events' class='big-link'>
|
||||
Add a new Event
|
||||
</a>
|
||||
</div>
|
||||
{% endifmemberof %}
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
<form id='list-events-Events' class='list' action='{{servlet-context}}/list-events-Events' method='POST'>
|
||||
{% csrf-field %}
|
||||
<input id='offset' type='hidden' value='{{params.offset|default:0}}'/>
|
||||
<input id='limit' type='hidden' value='{{params.limit|default:50}}'/>
|
||||
<table caption='events'>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
Id
|
||||
</th>
|
||||
<th>
|
||||
Name
|
||||
</th>
|
||||
<th>
|
||||
Date
|
||||
</th>
|
||||
<th>
|
||||
Time
|
||||
</th>
|
||||
<th>
|
||||
Decription
|
||||
</th>
|
||||
<th>
|
||||
Cancelled
|
||||
</th>
|
||||
<th>
|
||||
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>
|
||||
<input id='id' type='text' name='id' value='{{ params.id }}'/>
|
||||
</th>
|
||||
<th>
|
||||
<input id='name' type='text' name='name' value='{{ params.name }}'/>
|
||||
</th>
|
||||
<th>
|
||||
<input id='date' type='date' name='date' value='{{ params.date }}'/>
|
||||
</th>
|
||||
<th>
|
||||
<input id='time' type='time' name='time' value='{{ params.time }}'/>
|
||||
</th>
|
||||
<th>
|
||||
<input id='decription' type='text' name='decription' value='{{ params.decription }}'/>
|
||||
</th>
|
||||
<th>
|
||||
<input id='cancelled' type='text' name='cancelled' value='{{ params.cancelled }}'/>
|
||||
</th>
|
||||
<th>
|
||||
<input type='submit' id='search-widget' value='Search'/>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for record in records %}
|
||||
<tr>
|
||||
<td>
|
||||
{{ record.id }}
|
||||
</td>
|
||||
<td>
|
||||
{{ record.name }}
|
||||
</td>
|
||||
<td>
|
||||
{{ record.date }}
|
||||
</td>
|
||||
<td>
|
||||
{{ record.time }}
|
||||
</td>
|
||||
<td>
|
||||
{{ record.decription }}
|
||||
</td>
|
||||
<td>
|
||||
{{ record.cancelled }}
|
||||
</td>
|
||||
<td>
|
||||
<a href='form-events-Events?id={{ record.id }}'>
|
||||
View
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
{% endblock %}
|
||||
{% block extra-script %}
|
||||
|
||||
var form = document.getElementById('list-events-Events');
|
||||
var ow = document.getElementById('offset');
|
||||
var lw = document.getElementById('limit');
|
||||
form.addEventListener('submit', function() {
|
||||
ow.value='0';
|
||||
});
|
||||
|
||||
{% ifunequal params.offset "0" %}
|
||||
document.getElementById('prev-selector').addEventListener('click', function () {
|
||||
ow.value=(parseInt(ow.value)-parseInt(lw.value));
|
||||
console.log('Updated offset to ' + ow.value);
|
||||
form.submit();
|
||||
});
|
||||
{% endifunequal %}
|
||||
|
||||
document.getElementById('next-selector').addEventListener('click', function () {
|
||||
ow.value=(parseInt(ow.value)+parseInt(lw.value));
|
||||
console.log('Updated offset to ' + ow.value);
|
||||
form.submit();
|
||||
});
|
||||
{% endblock %}
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
<!-- File list-followupactions-Followupactions.html generated 2018-07-05T10:14:18.484Z by adl.to-selmer-templates.
|
||||
<!-- File list-followupactions-Followupactions.html generated 2018-07-07T08:09:49.971Z by adl.to-selmer-templates.
|
||||
See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
||||
|
||||
|
||||
|
|
@ -45,22 +45,22 @@ Add a new Followupaction
|
|||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
id
|
||||
Id
|
||||
</th>
|
||||
<th>
|
||||
request_id
|
||||
Request_id
|
||||
</th>
|
||||
<th>
|
||||
actor
|
||||
Actor
|
||||
</th>
|
||||
<th>
|
||||
date
|
||||
Date
|
||||
</th>
|
||||
<th>
|
||||
notes
|
||||
Notes
|
||||
</th>
|
||||
<th>
|
||||
closed
|
||||
Closed
|
||||
</th>
|
||||
<th>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
<!-- File list-followupmethods-Followupmethods.html generated 2018-07-05T10:14:18.456Z by adl.to-selmer-templates.
|
||||
<!-- File list-followupmethods-Followupmethods.html generated 2018-07-07T08:09:49.939Z by adl.to-selmer-templates.
|
||||
See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
||||
|
||||
|
||||
|
|
@ -45,7 +45,7 @@ Add a new Followupmethod
|
|||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
id
|
||||
Id
|
||||
</th>
|
||||
<th>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
<!-- File list-followuprequests-Followuprequests.html generated 2018-07-05T10:14:18.434Z by adl.to-selmer-templates.
|
||||
<!-- File list-followuprequests-Followuprequests.html generated 2018-07-07T08:09:49.920Z by adl.to-selmer-templates.
|
||||
See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
||||
|
||||
|
||||
|
|
@ -45,19 +45,19 @@ Add a new Followuprequest
|
|||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
id
|
||||
Id
|
||||
</th>
|
||||
<th>
|
||||
elector_id
|
||||
Elector_id
|
||||
</th>
|
||||
<th>
|
||||
visit_id
|
||||
Visit_id
|
||||
</th>
|
||||
<th>
|
||||
issue_id
|
||||
Issue_id
|
||||
</th>
|
||||
<th>
|
||||
method_id
|
||||
Method_id
|
||||
</th>
|
||||
<th>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
<!-- File list-genders-Genders.html generated 2018-07-05T10:14:18.428Z by adl.to-selmer-templates.
|
||||
<!-- File list-genders-Genders.html generated 2018-07-07T08:09:49.914Z by adl.to-selmer-templates.
|
||||
See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
||||
|
||||
|
||||
|
|
@ -45,7 +45,7 @@ Add a new Gender
|
|||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
id
|
||||
Id
|
||||
</th>
|
||||
<th>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
<!-- File list-intentions-Intentions.html generated 2018-07-05T10:14:18.487Z by adl.to-selmer-templates.
|
||||
<!-- File list-intentions-Intentions.html generated 2018-07-07T08:09:49.975Z by adl.to-selmer-templates.
|
||||
See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
||||
|
||||
|
||||
|
|
@ -45,16 +45,16 @@ Add a new Intention
|
|||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
visit_id
|
||||
Visit_id
|
||||
</th>
|
||||
<th>
|
||||
elector_id
|
||||
Elector_id
|
||||
</th>
|
||||
<th>
|
||||
option_id
|
||||
Option_id
|
||||
</th>
|
||||
<th>
|
||||
locality
|
||||
Locality
|
||||
</th>
|
||||
<th>
|
||||
|
||||
|
|
@ -100,7 +100,7 @@ locality
|
|||
{{ record.locality }}
|
||||
</td>
|
||||
<td>
|
||||
<a href='form-intentions-Intention?Id={{ record.Id }}'>
|
||||
<a href='form-intentions-Intention?id={{ record.id }}'>
|
||||
View
|
||||
</a>
|
||||
</td>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
<!-- File list-issues-Issues.html generated 2018-07-05T10:14:18.480Z by adl.to-selmer-templates.
|
||||
<!-- File list-issues-Issues.html generated 2018-07-07T08:09:49.966Z by adl.to-selmer-templates.
|
||||
See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
||||
|
||||
|
||||
|
|
@ -45,16 +45,16 @@ Add a new Issue
|
|||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
id
|
||||
Id
|
||||
</th>
|
||||
<th>
|
||||
url
|
||||
Url
|
||||
</th>
|
||||
<th>
|
||||
current
|
||||
Current
|
||||
</th>
|
||||
<th>
|
||||
brief
|
||||
Brief
|
||||
</th>
|
||||
<th>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
<!-- File list-options-Options.html generated 2018-07-05T10:14:18.435Z by adl.to-selmer-templates.
|
||||
<!-- File list-options-Options.html generated 2018-07-07T08:09:49.921Z by adl.to-selmer-templates.
|
||||
See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
||||
|
||||
|
||||
|
|
@ -45,7 +45,7 @@ Add a new Option
|
|||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
id
|
||||
Id
|
||||
</th>
|
||||
<th>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
<!-- File list-roles-Roles.html generated 2018-07-05T10:14:18.456Z by adl.to-selmer-templates.
|
||||
<!-- File list-roles-Roles.html generated 2018-07-07T08:09:49.939Z by adl.to-selmer-templates.
|
||||
See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
||||
|
||||
|
||||
|
|
@ -45,10 +45,10 @@ Add a new Role
|
|||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
id
|
||||
Id
|
||||
</th>
|
||||
<th>
|
||||
name
|
||||
Name
|
||||
</th>
|
||||
<th>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
<!-- File list-teams-Teams.html generated 2018-07-05T10:14:18.431Z by adl.to-selmer-templates.
|
||||
<!-- File list-teams-Teams.html generated 2018-07-07T08:09:49.917Z by adl.to-selmer-templates.
|
||||
See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
||||
|
||||
|
||||
|
|
@ -45,19 +45,19 @@ Add a new Team
|
|||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
id
|
||||
Id
|
||||
</th>
|
||||
<th>
|
||||
name
|
||||
Name
|
||||
</th>
|
||||
<th>
|
||||
district_id
|
||||
District_id
|
||||
</th>
|
||||
<th>
|
||||
latitude
|
||||
Latitude
|
||||
</th>
|
||||
<th>
|
||||
longitude
|
||||
Longitude
|
||||
</th>
|
||||
<th>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
<!-- File list-visits-Visits.html generated 2018-07-05T10:14:18.430Z by adl.to-selmer-templates.
|
||||
<!-- File list-visits-Visits.html generated 2018-07-07T08:09:49.916Z by adl.to-selmer-templates.
|
||||
See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
||||
|
||||
|
||||
|
|
@ -45,16 +45,16 @@ Add a new Visit
|
|||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
id
|
||||
Id
|
||||
</th>
|
||||
<th>
|
||||
address_id
|
||||
Address_id
|
||||
</th>
|
||||
<th>
|
||||
canvasser_id
|
||||
Canvasser_id
|
||||
</th>
|
||||
<th>
|
||||
date
|
||||
Date
|
||||
</th>
|
||||
<th>
|
||||
|
||||
|
|
|
|||
|
|
@ -5,11 +5,11 @@
|
|||
<!-- head: if you want entire custom head content, override this block. -->
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<link rel="stylesheet" type="text/css" href="css/yyy-common.css" />
|
||||
<link rel="stylesheet" type="text/css" href="css/yyy-site.css" />
|
||||
<link rel="stylesheet" type="text/css" href="css/spinner.css" />
|
||||
{% style "/css/yyy-common.css" %}
|
||||
{% style "/css/yyy-site.css" %}
|
||||
{% style "/css/spinner.css" %}
|
||||
<link href="https://fonts.googleapis.com/css?family=Archivo+Black|Archivo+Narrow" rel="stylesheet"/>
|
||||
{% script "js/lib/node_modules/jquery/dist/jquery.min.js" %}
|
||||
{% script "/js/lib/node_modules/jquery/dist/jquery.min.js" %}
|
||||
<title>{{site-title}}: {{title}}</title>
|
||||
{% endblock %}
|
||||
{% block extra-head %}
|
||||
|
|
|
|||
|
|
@ -1,38 +1,7 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Something bad happened</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
{% style "/assets/bootstrap/css/bootstrap.min.css" %}
|
||||
{% style "/assets/bootstrap/css/bootstrap-theme.min.css" %}
|
||||
<style type="text/css">
|
||||
html {
|
||||
height: 100%;
|
||||
min-height: 100%;
|
||||
min-width: 100%;
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
}
|
||||
html body {
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
}
|
||||
html .container-fluid {
|
||||
display: table;
|
||||
height: 100%;
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
}
|
||||
html .row-fluid {
|
||||
display: table-cell;
|
||||
height: 100%;
|
||||
vertical-align: middle;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
{% extends "base.html" %}
|
||||
{% block big-links %}
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
<body>
|
||||
<div class="container-fluid">
|
||||
<div class="row-fluid">
|
||||
|
|
@ -52,5 +21,5 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
{% endblock %}
|
||||
|
||||
|
|
|
|||
|
|
@ -9,39 +9,7 @@
|
|||
{% endblock %}
|
||||
{% block content %}
|
||||
<img id="site-logo" src="img/ProjectHopeLogo4.png" alt="{{site-title}}" style="float: left;" height="345" width="345"/>
|
||||
<h2>
|
||||
Alpha test code
|
||||
</h2>
|
||||
<p>
|
||||
This is a voter intention information system intended to be used by the 'Yes' side in the next independence referendum.
|
||||
Design documentation is <a href="https://github.com/simon-brooke/youyesyet/blob/master/doc/specification/userspec.md">here</a>.</p>
|
||||
{{motd|safe}}
|
||||
|
||||
<p>Although addresses in the database mostly are real, all personal data in the database
|
||||
is randomly generated and does not represent real people.</p>
|
||||
|
||||
<h3>
|
||||
The Canvasser app
|
||||
</h3>
|
||||
|
||||
<p>Because the canvasser app now loads data from the database and uses your current location, and the database currently only holds
|
||||
data for the Castle Douglas area, you're unlikely to see any actual data in the app. A dummy of the app in which you can see
|
||||
data is <a href="http://www.journeyman.cc/~simon/tmp/yyy-dummy-2/">here</a>.
|
||||
</p>
|
||||
<p>
|
||||
The app currently works on the Chrome browser, and on Android phones. I don't yet know whether it works on iPhones. It does not at
|
||||
present work with Firefox.
|
||||
</p>
|
||||
|
||||
<h3>
|
||||
The Admin system
|
||||
</h3>
|
||||
|
||||
<p>'Save' and 'Delete' buttons on administrative pages do not work; this is intentional at this stage.
|
||||
I want you to be able to see what different roles in the project can see, without actually being able
|
||||
to mess up the database.</p>
|
||||
|
||||
<p>If you encounter problems, please submit a report <a href="https://github.com/simon-brooke/youyesyet/issues">here</a>.
|
||||
General feedback on usability is also appreciated.</p>
|
||||
</p>
|
||||
{% endblock %}
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<form action="auth" method="post">
|
||||
<form action="login" method="post">
|
||||
{% csrf-field %}
|
||||
<h2>
|
||||
Or use a test username and password
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
{% block big-links %}
|
||||
{% for role in roles %}
|
||||
<div class="big-link-container">
|
||||
<a href="{{role.name|lower}}" class="big-link" id="big-link">{{role.name}}</a>
|
||||
<a href="roles/{{role.link|lower}}" class="big-link" id="big-link">{{role.name}}</a>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
|
|
|
|||
1
resources/templates/roles/analyst.html
Normal file
1
resources/templates/roles/analyst.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
{% extends "base.html" %}
|
||||
{% block big-links %}
|
||||
<div class="big-link-container">
|
||||
<a href="auth" class="big-link" id="yes-link">Yes</a>
|
||||
<a href="login" class="big-link" id="yes-link">Yes</a>
|
||||
</div>
|
||||
<div class="big-link-container">
|
||||
<a href="register" class="big-link" id="signup-link">No</a>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue