110067722: Update template with the form.

This commit is contained in:
Rebecca Law
2015-12-15 09:37:54 +00:00
parent 43f2605ac4
commit 23b5cffbe8
2 changed files with 14 additions and 16 deletions

View File

@@ -10,14 +10,10 @@ def insert_new_service(service_name, user):
limit=1000,
active=False,
restricted=True)
try:
add_service(service)
service.users.append(user)
db.session.commit()
return service.id
except Exception as e:
print(e)
raise e
add_service(service)
service.users.append(user)
db.session.commit()
return service.id
def get_service_by_id(id):

View File

@@ -16,15 +16,17 @@ GOV.UK Notify | Set up service
<li>as your email sender name</li>
</ul>
<p>
<label class="form-label" for="emailverify">Service name</label>
<input class="form-control" id="emailverify" type="text"><br>
<span class="font-xsmall">For example, 'Vehicle tax' or 'Carer's allowance'</span>
</p>
<form autocomplete="off" action="" method="post">
{{ form.hidden_tag() }}
<label class="form-label">Service name</label>
{{ form.service_name(class="form-control-2-3", autocomplete="off") }} <br>
<span class="font-xsmall">For example, 'Vehicle tax' or 'Carer's allowance'</span>
<p>
<a class="button" href="dashboard" role="button">Continue</a>
</p>
<p>
<button class="button" href="dashboard" role="button">Continue</button>
</p>
</form>
</div>
</div>
</div>