2014-07-03 21:57:57 +02:00
|
|
|
<div class="btn-breadcrumb">
|
|
|
|
<a href="#/" ><i class="fa-home"></i><span class="sr-only">{{t 'home'}}</span></a>
|
|
|
|
<a href="#/apps">{{t 'applications'}}</a>
|
|
|
|
<a href="#/apps/install">{{t 'install'}}</a>
|
|
|
|
<a href="#/apps/install/{{id}}">{{manifest.name}}</a>
|
2013-11-22 12:16:52 +01:00
|
|
|
</div>
|
|
|
|
|
2014-07-03 21:57:57 +02:00
|
|
|
<div class="separator"></div>
|
2013-11-22 12:16:52 +01:00
|
|
|
|
|
|
|
<form action="#/apps" method="POST" class="form-horizontal">
|
|
|
|
|
|
|
|
<div class="panel panel-default">
|
2014-06-01 19:18:35 +02:00
|
|
|
<div class="panel-heading">
|
|
|
|
<h2 class="panel-title"><span class="fa-fw fa-info-circle"></span> {{t 'infos'}}</h2>
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
<dl class="dl-horizontal">
|
|
|
|
<dt>{{t 'id'}}</dt>
|
2014-06-04 22:28:02 +02:00
|
|
|
<dd>{{id}}</dd>
|
2014-06-01 19:18:35 +02:00
|
|
|
<dt>{{t 'description'}}</dt>
|
|
|
|
<dd>{{description}}</dd>
|
|
|
|
<dt>{{t 'multi_instance'}}</dt>
|
2014-06-02 19:41:39 +02:00
|
|
|
<dd>{{manifest.multi_instance}}</dd>
|
2014-06-01 19:18:35 +02:00
|
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<h2 class="panel-title"><span class="fa-fw fa-download"></span> {{t 'install'}}</h2>
|
|
|
|
</div>
|
2013-11-22 12:16:52 +01:00
|
|
|
<div class="panel-body">
|
|
|
|
<div class="form-group">
|
2014-05-13 01:30:22 +02:00
|
|
|
<label for="label" class="col-sm-12">{{t 'label_for_manifestname' manifest.name}}</label>
|
2013-11-22 12:16:52 +01:00
|
|
|
<div class="col-sm-12">
|
2014-06-01 19:38:11 +02:00
|
|
|
<input type="text" id="label" name="label" class="form-control" value="{{manifest.name}}" required>
|
2013-11-22 12:16:52 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{#manifest.arguments.install}}
|
|
|
|
<div class="form-group">
|
2014-06-02 19:36:31 +02:00
|
|
|
<label for="{{name}}" class="col-sm-12">{{label}}</label>
|
2013-11-22 12:16:52 +01:00
|
|
|
<div class="col-sm-12">
|
2014-02-21 13:48:03 +01:00
|
|
|
{{#if allowedValues}}
|
2014-06-01 19:38:11 +02:00
|
|
|
<select id="{{name}}" name="{{name}}" required placeholder="{{example}}" class="form-control" {{#if multipleValues}}multiple{{/if}}>
|
2014-02-21 13:48:03 +01:00
|
|
|
<option value="" default disabled selected>{{example}}</option>
|
|
|
|
{{#allowedValues}}<option value="{{value}}">{{label}}</option>{{/allowedValues}}
|
|
|
|
</select>
|
|
|
|
{{else}}
|
2014-02-21 15:49:13 +01:00
|
|
|
{{#if choices}}
|
|
|
|
{{#each choices}}
|
|
|
|
<div class="radio">
|
|
|
|
<label for="{{../name}}-{{key}}">
|
|
|
|
<input type="radio" id="{{../name}}-{{key}}" name="{{../name}}" value="{{value}}" {{#if checked}}checked{{/if}} required> {{value}}
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
{{/each}}
|
|
|
|
{{else}}
|
2014-06-01 19:38:11 +02:00
|
|
|
<input type="text" id="{{name}}" name="{{name}}" class="form-control" value="{{default}}" placeholder="{{example}}" required>
|
2014-02-21 15:49:13 +01:00
|
|
|
{{/if}}
|
2014-02-21 13:48:03 +01:00
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{#if help}}
|
|
|
|
<span class="help-block">{{{help}}}</span>
|
|
|
|
{{/if}}
|
2013-11-22 12:16:52 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/manifest.arguments.install}}
|
|
|
|
<hr>
|
2014-06-04 22:28:02 +02:00
|
|
|
<input type="hidden" name="app" value="{{id}}">
|
2013-11-22 12:16:52 +01:00
|
|
|
<div class="text-center">
|
2014-05-13 01:30:22 +02:00
|
|
|
<input type="submit" class="btn btn-success slide back" value="{{t 'install'}}">
|
2013-11-22 12:16:52 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</form>
|