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
576d8d9
commit 0a748d7
Showing
6 changed files
with
172 additions
and
49 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
54 changes: 30 additions & 24 deletions
54
plugins/pencilblue/templates/admin/plugins/plugin_settings.html
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 |
---|---|---|
@@ -1,29 +1,35 @@ | ||
^tmp_admin=head^ | ||
<div class="col-md-9"> | ||
^tmp_admin=elements=error_success^ | ||
^tmp_admin=elements=sub_nav^ | ||
^tmp_admin=elements=tab_nav^ | ||
<form name="pluginSettingsForm" ng-submit="savePluginSettings()" novalidate> | ||
<fieldset> | ||
<div class="tab-content"> | ||
<div class="tab-pane active" id="plugin_settings"> | ||
<div class="form-group" ng-repeat="item in settings"> | ||
<label ng-bind="item.displayName"></label> | ||
<input class="form-control" ng-model="item.value" type="{{item.type}}" ng-if="item.type != 'checkbox'"></input> | ||
<br ng-if="item.type == 'checkbox'"/> | ||
<div class="btn-group" ng-if="item.type == 'checkbox'"> | ||
<button type="button" class="btn btn-default" ng-class="{'active': item.value}" ng-click="item.value = true">^loc_generic.YES^</button> | ||
<button type="button" class="btn btn-default" ng-class="{'active': !item.value}" ng-click="item.value = false">^loc_generic.NO^</button> | ||
</div> | ||
</div> | ||
</div> | ||
<a class="btn btn-default" href="/admin/plugins"> | ||
<i class="fa fa-ban"></i> ^loc_generic.CANCEL^ | ||
</a> | ||
^tmp_admin=elements=save_button^ | ||
</div> | ||
</fieldset> | ||
</form> | ||
^tmp_admin=elements=error_success^ | ||
^tmp_admin=elements=sub_nav^ | ||
^tmp_admin=elements=tab_nav^ | ||
<form name="pluginSettingsForm" ng-submit="savePluginSettings()" novalidate> | ||
<fieldset> | ||
<div class="tab-content"> | ||
<div class="tab-pane active" id="plugin_settings"> | ||
<div id="{{item.id}}" class="form-group" ng-repeat="item in settings"> | ||
<div ng-if="item.isHeading"> | ||
<h3>{{item.heading}}</h3> | ||
<hr> | ||
</div> | ||
<div ng-if="!item.isHeading"> | ||
<label ng-bind="item.displayName"></label> | ||
<input class="form-control" ng-model="item.value" type="{{item.type}}" ng-if="item.type != 'checkbox'"/> | ||
<br ng-if="item.type == 'checkbox'"/> | ||
<div class="btn-group" ng-if="item.type == 'checkbox'"> | ||
<button type="button" class="btn btn-default" ng-class="{'active': item.value}" ng-click="item.value = true">^loc_generic.YES^</button> | ||
<button type="button" class="btn btn-default" ng-class="{'active': !item.value}" ng-click="item.value = false">^loc_generic.NO^</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<a class="btn btn-default" href="/admin/plugins"> | ||
<i class="fa fa-ban"></i> ^loc_generic.CANCEL^ | ||
</a> | ||
^tmp_admin=elements=save_button^ | ||
</div> | ||
</fieldset> | ||
</form> | ||
</div> | ||
^tmp_angular=admin=plugins=plugin_settings^ | ||
^tmp_admin=footer^ |
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 |
---|---|---|
@@ -1,4 +1,12 @@ | ||
{ | ||
"SAMPLE_HELLO_WORLD": "Hello World!!!", | ||
"PARAMETERIZED_KEY": "This is a parameterized key. I can pass a string value like, {someString}, or a number like {someNumber}. I can even pass JSON like, {json}" | ||
} | ||
"PARAMETERIZED_KEY": "This is a parameterized key. I can pass a string value like, {someString}, or a number like {someNumber}. I can even pass JSON like, {json}", | ||
"SAMPLE_STRING_SETTING": "Sample String Setting", | ||
"SAMPLE_NUMBER_SETTING": "Sample Number Setting", | ||
"SAMPLE_BOOL_SETTING": "Sample Boolean Setting", | ||
"SAMPLE_STRING_THEME_SETTING": "Sample String Theme Setting", | ||
"SAMPLE_NUMBER_THEME_SETTING": "Sample Number Theme Setting", | ||
"SAMPLE_BOOL_THEME_SETTING": "Sample Boolean Theme Setting", | ||
"SAMPLE_GROUP1": "Sample Setting Group 1", | ||
"SAMPLE_GROUP2": "Sample Setting Group 2" | ||
} |
41 changes: 30 additions & 11 deletions
41
test/include/service/entities/plugins/plugin_validation_service_tests.js
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