2017-07-15 22:09:48 +08:00
|
|
|
<form #settingsForm="ngForm" class="form-horizontal">
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<h3 class="panel-title">Basic settings</h3>
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
<div [hidden]="!error" class="alert alert-danger" role="alert"><strong>Error: </strong>{{error}}</div>
|
|
|
|
|
|
|
|
|
2017-07-15 23:29:40 +08:00
|
|
|
<div class="form-group" [hidden]="simplifiedMode">
|
2017-07-15 22:09:48 +08:00
|
|
|
<label class="col-sm-2 control-label" for="applicationTitle">Page title</label>
|
|
|
|
<div class="col-sm-10">
|
|
|
|
<input type="text" class="form-control" placeholder="Pigallery 2"
|
|
|
|
id="applicationTitle"
|
2017-07-15 23:29:40 +08:00
|
|
|
[(ngModel)]="settings.applicationTitle"
|
2017-07-15 22:09:48 +08:00
|
|
|
name="applicationTitle" required>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-07-15 23:29:40 +08:00
|
|
|
<div class="form-group" [hidden]="simplifiedMode">
|
2017-07-15 22:09:48 +08:00
|
|
|
<label class="col-sm-2 control-label" for="port">Port</label>
|
|
|
|
<div class="col-sm-10">
|
|
|
|
<input type="number" class="form-control" placeholder="80"
|
|
|
|
id="port"
|
|
|
|
min="0"
|
|
|
|
step="1"
|
|
|
|
max="65535"
|
2017-07-15 23:29:40 +08:00
|
|
|
[(ngModel)]="settings.port"
|
2017-07-15 22:09:48 +08:00
|
|
|
name="port" required>
|
|
|
|
<span class="help-block">Port number. Port 80 is usually what you need.</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-sm-2 control-label" for="folder">Images folder</label>
|
|
|
|
<div class="col-sm-10">
|
|
|
|
<input type="text" class="form-control" placeholder="path"
|
|
|
|
id="folder"
|
2017-07-15 23:29:40 +08:00
|
|
|
[(ngModel)]="settings.imagesFolder"
|
2017-07-15 22:09:48 +08:00
|
|
|
name="folder" required>
|
|
|
|
<span class="help-block">Images are loaded from this folder (read permission required)</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2017-07-15 23:29:40 +08:00
|
|
|
<div class="form-group" [hidden]="simplifiedMode">
|
2017-07-15 22:09:48 +08:00
|
|
|
<label class="col-sm-2 control-label" for="publicUrl">Page public url</label>
|
|
|
|
<div class="col-sm-10">
|
|
|
|
<input type="url" class="form-control" placeholder="{{urlPlaceholder}}"
|
|
|
|
id="publicUrl"
|
2017-07-15 23:29:40 +08:00
|
|
|
[(ngModel)]="settings.publicUrl"
|
2017-07-15 22:09:48 +08:00
|
|
|
name="publicUrl">
|
|
|
|
<span class="help-block">If you access the page form local network its good to know the public url for creating sharing link</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<button class="btn btn-success pull-right"
|
|
|
|
[disabled]="!settingsForm.form.valid || !changed || inProgress"
|
|
|
|
(click)="save()">Save
|
|
|
|
</button>
|
|
|
|
<button class="btn btn-default pull-right"
|
|
|
|
(click)="reset()">Reset
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</form>
|