mirror of
https://gitlab.silvrtree.co.uk/martind2000/project.git
synced 2025-01-10 23:45:07 +00:00
163 lines
6.6 KiB
Handlebars
163 lines
6.6 KiB
Handlebars
<div class="container-fluid main-container">
|
|
<div class="col-md-12 content">
|
|
<div class="card">
|
|
<div class="card-block">
|
|
<div class="row">
|
|
<div class="col-md-4 content">
|
|
<button
|
|
class="btn btn-primary-outline" {{action "createNew"}}>Create a new basic page
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{{#unless isEditing}}
|
|
|
|
<div class="card">
|
|
<div class="card-block">
|
|
{{#each model as |item|}}
|
|
<div class="row rowSpacer">
|
|
<div class="col-md-4 content">
|
|
{{item.title}}
|
|
</div>
|
|
<div class="col-md-4 content">
|
|
{{item.pageMode}}
|
|
</div>
|
|
<div class="col-md-4 content">
|
|
<button class="btn btn-primary btn-sm" {{action "performEdit" item.id}}>Edit</button>
|
|
<button class="btn btn-danger btn-sm" {{action "performDelete" item.id}}>Delete</button>
|
|
</div>
|
|
</div>
|
|
{{/each}}
|
|
</div>
|
|
</div>
|
|
{{/unless}}
|
|
|
|
{{#if isEditing}}
|
|
|
|
<div class="card">
|
|
<div class="card-header">
|
|
New Page
|
|
</div>
|
|
<div class="card-block">
|
|
<div class="row">
|
|
<div class="col-md-4 content">
|
|
<form {{action "savePage" on='submit'}}>
|
|
|
|
{{#if model.usefulPid}}
|
|
<div class="col-md-12 form-inline">
|
|
<p>Link to this page: <span class="linkpid">{{model.usefulPid}}</span></p>
|
|
</div>
|
|
|
|
{{/if}}
|
|
<div class="col-md-12 form-inline">
|
|
<label for="title">Title:</label>
|
|
{{input id='title' placeholder='title' value=model.title class="form-control" required="required"}}
|
|
</div>
|
|
<div class="col-md-12 form-inline">
|
|
<label for="imageUrl">Image URL:</label>
|
|
{{input id='imageUrl' placeholder='URL to your image' value=model.imageUrl class="form-control" required="required"}}
|
|
</div>
|
|
<div class="col-md-12 form-inline">
|
|
<div>Link One</div>
|
|
<label for="link1title">Text:</label>
|
|
{{input id='link1title' placeholder='Text' value=model.link1Text class="form-control"}}
|
|
<br/>
|
|
<label for="link1url">URL:</label>
|
|
{{input id='link1url' placeholder='http://something.com/link' value=model.link1Url class="form-control"}}
|
|
</div>
|
|
<div class="col-md-12 form-inline">
|
|
<div>Link Two</div>
|
|
<label for="link2title">Text:</label>
|
|
{{input id='link2title' placeholder='Text' value=model.link2Text class="form-control"}}
|
|
<br/>
|
|
<label for="link2url">URL:</label>
|
|
{{input id='link2url' placeholder='http://something.com/link' value=model.link2Url class="form-control"}}
|
|
</div>
|
|
<div class="col-md-12 form-inline">
|
|
<div>Link Three</div>
|
|
<label for="link3title">Text:</label>
|
|
{{input id='link3title' placeholder='Text' value=model.link3Text class="form-control"}}
|
|
<br/>
|
|
<label for="link3url">URL:</label>
|
|
{{input id='link3url' placeholder='http://something.com/link' value=model.link3Url class="form-control"}}
|
|
</div>
|
|
<div class="col-md-12 form-inline">
|
|
<div>Link Four</div>
|
|
<label for="link4title">Text:</label>
|
|
{{input id='link4title' placeholder='Text' value=model.link4Text class="form-control"}}
|
|
<br/>
|
|
<label for="link4url">URL:</label>
|
|
{{input id='link4url' placeholder='http://something.com/link' value=model.link4Url class="form-control"}}
|
|
</div>
|
|
<div class="form-group">
|
|
<div class="col-sm-offset-2 col-sm-10">
|
|
<button type="submit" class="btn btn-primary">Save</button>
|
|
<button
|
|
class="btn btn-danger" {{action "cancelEdit"}}>Cancel
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<div></div>
|
|
<div class="col-md-8 content">
|
|
<div id="fakeDevice" class="fakeDevice">
|
|
<h1 class="text-xs-center">{{ model.title }}</h1>
|
|
{{#if model.noImage }}
|
|
<img src="http://pipes.silvrtree.co.uk/assets/fm.png"
|
|
class="center-block image300"/>
|
|
{{else}}
|
|
<img src="{{model.imageUrl}}" class="center-block image300"/>
|
|
{{/if}}
|
|
|
|
<ul class="list-group">
|
|
{{#if model.visibleLink1 }}
|
|
<li class="list-group-item text-xs-center"><a
|
|
href="{{model.link1Url}}"
|
|
target="_blank">{{model.link1Text}}</a></li>
|
|
{{else}}
|
|
<li class="list-group-item text-muted text-xs-center">
|
|
<em>Your link here</em></li>
|
|
{{/if}}
|
|
|
|
|
|
{{#if model.visibleLink2 }}
|
|
<li class="list-group-item text-xs-center"><a
|
|
href="{{model.link2Url}}"
|
|
target="_blank">{{model.link2Text}}</a>
|
|
</li>
|
|
{{else}}
|
|
<li class="list-group-item text-muted text-xs-center">
|
|
<em>Your link here</em></li>
|
|
{{/if}}
|
|
|
|
{{#if model.visibleLink3 }}
|
|
<li class="list-group-item text-xs-center"><a
|
|
href="{{model.link3Url}}"
|
|
target="_blank">{{model.link3Text}}</a>
|
|
</li>
|
|
{{else}}
|
|
<li class="list-group-item text-muted text-xs-center">
|
|
<em>Your link here</em></li>
|
|
{{/if}}
|
|
|
|
{{#if model.visibleLink4 }}
|
|
<li class="list-group-item text-xs-center"><a
|
|
href="{{model.link4Url}}"
|
|
target="_blank">{{model.link4Text}}</a>
|
|
</li>
|
|
{{else}}
|
|
<li class="list-group-item text-muted text-xs-center">
|
|
<em>Your link here</em></li>
|
|
{{/if}}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{/if}}
|
|
</div>
|
|
</div> |