mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-10 01:55:41 -04:00
110067722: Update template with the form.
This commit is contained in:
@@ -10,14 +10,10 @@ def insert_new_service(service_name, user):
|
|||||||
limit=1000,
|
limit=1000,
|
||||||
active=False,
|
active=False,
|
||||||
restricted=True)
|
restricted=True)
|
||||||
try:
|
add_service(service)
|
||||||
add_service(service)
|
service.users.append(user)
|
||||||
service.users.append(user)
|
db.session.commit()
|
||||||
db.session.commit()
|
return service.id
|
||||||
return service.id
|
|
||||||
except Exception as e:
|
|
||||||
print(e)
|
|
||||||
raise e
|
|
||||||
|
|
||||||
|
|
||||||
def get_service_by_id(id):
|
def get_service_by_id(id):
|
||||||
|
|||||||
@@ -16,15 +16,17 @@ GOV.UK Notify | Set up service
|
|||||||
<li>as your email sender name</li>
|
<li>as your email sender name</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<p>
|
<form autocomplete="off" action="" method="post">
|
||||||
<label class="form-label" for="emailverify">Service name</label>
|
{{ form.hidden_tag() }}
|
||||||
<input class="form-control" id="emailverify" type="text"><br>
|
<label class="form-label">Service name</label>
|
||||||
<span class="font-xsmall">For example, 'Vehicle tax' or 'Carer's allowance'</span>
|
{{ form.service_name(class="form-control-2-3", autocomplete="off") }} <br>
|
||||||
</p>
|
<span class="font-xsmall">For example, 'Vehicle tax' or 'Carer's allowance'</span>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<a class="button" href="dashboard" role="button">Continue</a>
|
<button class="button" href="dashboard" role="button">Continue</button>
|
||||||
</p>
|
</p>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user