-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8069050
commit 90f306a
Showing
7 changed files
with
173 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<div data---="largeform___common.form__if:service;width:900;icon:fas fa-box;submit:?/submit;reload:?/reload;autofocus:1" class="hidden" data-scope="serviceform"> | ||
<div> | ||
<div data-bind="appform.id___hide" class="hidden"> | ||
<div class="alert"><i class="fa fa-warning"></i>@(<b>Uploading of source-code</b> is possible after the creation process.)</div> | ||
</div> | ||
<div class="padding"> | ||
<div data---="input__?.name__required:1;placeholder:@(e.g. CMS)" class="m">@(Service name)</div> | ||
<div data---="input__?.category__dirsource:apps.categories;dircustom:true;dirempty:@(Without category);placeholder:@(Choose a category);dirplaceholder:@(Search or create new)" class="m">@(Category)</div> | ||
<div data---="input__?.debug__type:checkbox__true" class="inline b mr5 black">@(Enable debug mode)</div> | ||
<div class="inline middle mr15"><span class="badge badge-red">@(debug)</span></div> | ||
<div data---="input__?.watcher__type:checkbox;disabled:true__false" class="inline mr15" data-bind="?.debug__disabled">@(Enable watcher)</div> | ||
<div data---="input__?.highpriority__type:checkbox" class="inline mr15 black">@(High priority)</div> | ||
<div data---="input__?.backup__type:checkbox" class="inline">@(Enable backing up)</div> | ||
</div> | ||
<hr class="nmb nmt" /> | ||
<div class="padding npb"> | ||
<div class="row"> | ||
<div class="col-md-3 col-xs-6 m"> | ||
<div data---="input__?.memory__align:center;increment:true;maxlength:4;placeholder:@(auto);type:number__'auto'">@(Memory limit)</div> | ||
</div> | ||
<div class="col-md-3 col-xs-6 m"> | ||
<div data---="input__?.priority__align:center;increment:true;maxlength:3;type:number__0">@(Process priority)</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<nav data---="validation__?"> | ||
<button name="submit"><i class="fas fa-check-circle"></i>@(SUBMIT)</button> | ||
<button name="cancel">@(Cancel)</button> | ||
</nav> | ||
</div> | ||
|
||
<script> | ||
|
||
PLUGIN('serviceform', function(exports) { | ||
|
||
exports.reload = function(com) { | ||
var model = GET('?'); | ||
com.reconfigure({ title: model.id ? '@(Edit service)' : '@(Create service)' }); | ||
}; | ||
|
||
exports.submit = function(hide) { | ||
var model = GET('? @reset @showloading'); | ||
model.servicemode = true; | ||
DAPI('apps_save', model, ASETTER('message/response', function(response) { | ||
|
||
if (!model.id && response.value) { | ||
setTimeout(function() { | ||
var app = apps.apps.findItem('id', response.value); | ||
if (app) { | ||
SET('uploadform.app', app); | ||
SET('common.form', 'upload'); | ||
} | ||
SETTER('loading/hide', 1000); | ||
}, 2500); | ||
} else | ||
SETTER('loading/hide', 1000); | ||
|
||
hide(); | ||
})); | ||
}; | ||
|
||
}); | ||
|
||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.