mirror of
https://gitlab.silvrtree.co.uk/martind2000/project.git
synced 2025-01-10 23:35:08 +00:00
157 lines
5.3 KiB
Handlebars
157 lines
5.3 KiB
Handlebars
<!--<div class="container profileCard">-->
|
|
<div class="container profileCard">
|
|
{{#if isEditing}}
|
|
<form {{action "saveCompany" on='submit'}} class="form-horizontal">
|
|
<div class="form-group">
|
|
<label for="company_name"
|
|
class="col-sm-2 control-label">Company name:</label>
|
|
<div class="col-sm-10">
|
|
{{input id='company_name' placeholder='Company name' value=model.company_name class="form-control" required="required"}}
|
|
</div>
|
|
</div>
|
|
<br/>
|
|
<div class="form-group">
|
|
<label for="address1" class="col-sm-2 control-label">Address:</label>
|
|
<div class="col-sm-10">
|
|
{{input id='address1' placeholder='Address' value=model.address1 class="form-control" required="required"}}
|
|
{{input id='address2' placeholder='Address' value=model.address2 class="form-control" }}
|
|
{{input id='address3' placeholder='Address' value=model.address3 class="form-control" }}
|
|
</div>
|
|
</div>
|
|
<br/>
|
|
<!-- -->
|
|
<div class="form-group">
|
|
<label for="town" class="col-sm-2 control-label">Town:</label>
|
|
<div class="col-sm-10">
|
|
{{input id='town' placeholder='Town' value=model.town class="form-control" required="required"}}
|
|
</div>
|
|
<!-- -->
|
|
<label for="county" class="col-sm-2 control-label">County:</label>
|
|
<div class="col-sm-10">
|
|
{{input id='county' placeholder='County' value=model.county class="form-control" }}
|
|
</div>
|
|
<!-- -->
|
|
<label for="postcode" class="col-sm-2 control-label">Postcode:</label>
|
|
<div class="col-sm-10">
|
|
{{input id='postcode' placeholder='Postcode' value=model.postcode class="form-control" required="required"}}
|
|
</div>
|
|
</div>
|
|
<br/>
|
|
<div class="form-group">
|
|
<label for="pcontact"
|
|
class="col-sm-2 control-label">Primary Contact:</label>
|
|
<div class="col-sm-10">
|
|
{{input id='pcontact' placeholder='Primary contact number' value=model.pcontact class="form-control" required="required"}}
|
|
</div>
|
|
<label for="ocontact"
|
|
class="col-sm-2 control-label">Other Contact:</label>
|
|
<div class="col-sm-10">
|
|
{{input id='ocontact' placeholder='Other contact phone number' value=model.ocontact class="form-control" }}
|
|
</div>
|
|
<label for="mobile" class="col-sm-2 control-label">Mobile:</label>
|
|
<div class="col-sm-10">
|
|
{{input id='mobile' placeholder='Mobile phone' value=model.mobile class="form-control" }}
|
|
</div>
|
|
</div>
|
|
<br/>
|
|
<div class="form-group">
|
|
<label for="email" class="col-sm-2 control-label">Email:</label>
|
|
<div class="col-sm-10">
|
|
{{input id='email' placeholder='Contact email address' value=model.email class="form-control" required="required"}}
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<div class="row">
|
|
<div class="col-md-8"> </div>
|
|
<div class="col-md-4">
|
|
{{#if isEditing}}
|
|
<button class="btn btn-primary pull-right" type="submit">
|
|
<i class="glyphicon glyphicon-pencil"></i> Save
|
|
</button>
|
|
|
|
|
|
|
|
<button class="btn btn-warning-outline pull-right" {{action "cancelEdit"}}>
|
|
Cancel
|
|
</button>
|
|
{{/if}}
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</form>
|
|
{{else}}
|
|
|
|
<h1 class="only-bottom-margin">{{model.company_name}}</h1>
|
|
<div class="row">
|
|
<div class="col-sm-2">Address</div>
|
|
<div class="col-sm-10">
|
|
<div>{{model.address1}}</div>
|
|
<div>{{model.address2}}</div>
|
|
<div>{{model.address3}}</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-sm-2">Town</div>
|
|
<div class="col-sm-10">
|
|
<div>{{model.town}}</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-sm-2">County</div>
|
|
<div class="col-sm-10">
|
|
<div>{{model.county}}</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-sm-2">Postcode</div>
|
|
<div class="col-sm-10">
|
|
<div>{{model.postcode}}</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-sm-2">Primary contact</div>
|
|
<div class="col-sm-10">
|
|
<div>{{model.pcontact}}</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-sm-2">Secondary contact</div>
|
|
<div class="col-sm-10">
|
|
<div>{{model.ocontact}}</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-sm-2">Mobile</div>
|
|
<div class="col-sm-10">
|
|
<div>{{model.mobile}}</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-sm-2">Email</div>
|
|
<div class="col-sm-10">
|
|
<div>{{model.email}}</div>
|
|
</div>
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
<div class="form-group">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
{{#if isEditing}}
|
|
|
|
{{else}}
|
|
<button class="btn btn-default pull-right" {{action "editCompany"}}>
|
|
<i class="glyphicon glyphicon-pencil"></i> Edit
|
|
</button>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|