1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00
pigallery2/frontend/app/settings/basic/basic.settings.component.html

78 lines
3.2 KiB
HTML
Raw Normal View History

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" i18n>Basic settings</h3>
2017-07-15 22:09:48 +08:00
</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">
<label class="col-sm-2 control-label" for="applicationTitle" i18n>Page title</label>
2017-07-15 22:09:48 +08:00
<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" i18n>Port number. Port 80 is usually what you need.</span>
2017-07-15 22:09:48 +08:00
</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" i18n>Images are loaded from this folder (read permission required)</span>
2017-07-15 22:09:48 +08:00
</div>
</div>
2017-07-15 23:29:40 +08:00
<div class="form-group" [hidden]="simplifiedMode">
<label class="col-sm-2 control-label" for="publicUrl" i18n>Page public url</label>
2017-07-15 22:09:48 +08:00
<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" i18n>If you access the page form local network its good to know the public url for creating sharing link</span>
2017-07-15 22:09:48 +08:00
</div>
</div>
<div class="form-group" [hidden]="simplifiedMode">
<label class="col-sm-2 control-label" for="urlBase" i18n>Url Base</label>
<div class="col-sm-10">
<input type="url" class="form-control" placeholder="/myGallery"
id="urlBase"
[(ngModel)]="settings.urlBase"
name="urlBase">
<span class="help-block" i18n>If you access the gallery under a sub url (like: http://mydomain.com/myGallery), set it here. If not working you might miss the '/' from the beginning of the url.</span>
</div>
</div>
2017-07-15 22:09:48 +08:00
<button class="btn btn-success pull-right"
[disabled]="!settingsForm.form.valid || !changed || inProgress"
(click)="save()" i18n>Save
2017-07-15 22:09:48 +08:00
</button>
<button class="btn btn-default pull-right"
(click)="reset()" i18n>Reset
2017-07-15 22:09:48 +08:00
</button>
</div>
</div>
</form>