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, 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):

View File

@@ -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>