P3X GitList Demo
GitHub
Repo
Changelog
To do
Releases
Themes
Language
Auto
Afrikaans
العربية
বাংলা
Català
Čeština
Dansk
Deutsch
Ελληνικά
English
Español
Suomi
Français
עברית
Magyar
Italiano
日本語
한국어
Nederlands
Norsk
Polski
Português
Română
Русский
Српски
Svenska
Türkçe
Українська
Tiếng Việt
中文
Change log
Loading change log ...
To do ...
Loading todo ...
browsing:
256646f0ad3d53468a1487f93b5f330cc38a1501
Branches
main
Files
Commits
Log
Graph
Stats
redis-ui-material.git
src
angular
dialog
p3xr-dialog-key-new-or-set.html
RSS
Git
Fetch origin
Download
ZIP
TAR
Clone
Delete
Are you sure to delete this file?
Editor
Raw
Blame
History
6kB
110 lines
HTML code
Clone
HTTPS
This file (6kB) exceeds the allowed full mode (48 kb) size. The editor full height is disabled, only scrolling is allowed.
If you wish to edit a file, it is recommended to use the scroll mode as some users do not like the full height mode.
src/angular/dialog/p3xr-dialog-key-new-or-set.html
<md-dialog aria-label="{{$root.p3xr.strings.form.key.label.formName}}" style="min-width: 75%; "> <form novalidate name="p3xrKeyNewForm" ng-submit="submit()"> <md-toolbar md-theme="{{ $root.p3xr.state.themeLayout }}" class="md-hue-3"> <div class="md-toolbar-tools"> <h2 flex md-truncate> {{ options.type === 'edit' ? $root.p3xr.strings.form.key.label.formName.edit : ( options.type === 'append' ? $root.p3xr.strings.form.key.label.formName.append : $root.p3xr.strings.form.key.label.formName.add ) }} </h2> <md-button class="md-icon-button" ng-click="cancel()"> <md-icon>close</md-icon> </md-button> </div> </md-toolbar> <md-dialog-content md-theme="{{ $root.p3xr.state.theme }}"> <md-content layout-padding> <md-input-container class="md-block"> <label>{{ $root.p3xr.strings.form.key.field.key }}</label> <input required minlength="1" ng-model="model.key" name="key" ng-disabled="options.type !== 'add'"> <div ng-messages="p3xrKeyNewForm.key.$error"> <div ng-message-exp="['required', 'minlength']"> {{ $root.p3xr.strings.form.key.error.key }} </div> </div> </md-input-container> <md-input-container class="md-block"> <label>{{ $root.p3xr.strings.form.key.field.type }}</label> <md-select ng-model="model.type" name="type" ng-disabled="options.type !== 'add'"> <md-option ng-repeat="type in types" ng-value="type"> {{ $root.p3xr.strings.redisTypes[type] }} </md-option> </md-select> </md-input-container> <span ng-switch="model.type"> <span ng-switch-when="list"> <md-input-container class="md-block p3xr-md-input-container-no-bottom"> <label>{{ $root.p3xr.strings.form.key.field.index }}</label> <input type="number" step="1" ng-model="model.index" name="index"> </md-input-container> <div class="p3xr-md-input-container-bottom-info"> {{ $root.p3xr.strings.label.redisListIndexInfo }} </div> </span> <span ng-switch-when="hash"> <md-input-container class="md-block"> <label>{{ $root.p3xr.strings.form.key.field.hashKey }}</label> <input required minlength="1" ng-model="model.hashKey" name="hashKey"> <div ng-messages="p3xrKeyNewForm.hashKey.$error"> <div ng-message-exp="['required', 'minlength']"> {{ $root.p3xr.strings.form.key.error.hashKey }} </div> </div> </md-input-container> </span> <span ng-switch-when="zset"> <md-input-container class="md-block"> <label>{{ $root.p3xr.strings.form.key.field.score }}</label> <input type="number" required ng-model="model.score" name="score"> <div ng-messages="p3xrKeyNewForm.score.$error"> <div ng-message-exp="['required']"> {{ $root.p3xr.strings.form.key.error.score }} </div> </div> </md-input-container> </span> </span> <md-switch ng-model="validateJson" class="md-accent" style="margin-top: 0px;"> {{ $root.p3xr.strings.label.validateJson }} </md-switch> <md-input-container class="md-block"> <label>{{ $root.p3xr.strings.form.key.field.value }}</label> <textarea ng-model="model.value" required p3x-validate-json p3x-validate-json-required="validateJson" name="value"></textarea> <div ng-messages="p3xrKeyNewForm.value.$error"> <div ng-message-exp="['required']"> {{ $root.p3xr.strings.form.key.error.value }} </div> </div> <div ng-messages="p3xrKeyNewForm.value.$error"> <div ng-message-exp="['p3xValidateJson']"> {{ $root.p3xr.strings.label.jsonViewNotParsable }} </div> </div> </md-input-container> </md-content> </md-dialog-content> <md-dialog-actions layout="row" layout-align="end end" md-theme="{{ $root.p3xr.state.theme }}"> <md-button class="md-raised md-primary" type="submit"> <md-icon>{{ options.type === 'edit' ? 'edit' : 'add'}}</md-icon> {{ options.type === 'edit' ? $root.p3xr.strings.intention.save : $root.p3xr.strings.intention.add }} </md-button> <md-button class="md-raised md-accent" ng-click="cancel()"> <md-icon>close</md-icon> {{ $root.p3xr.strings.intention.cancel }} </md-button> </md-dialog-actions> </form> </md-dialog>
Keyboard shortcuts
/
Focus search
?
Show this help
Esc
Unfocus input