Skip to content

Commit

Permalink
Merge pull request #69 from e-ucm/fixPubliGame
Browse files Browse the repository at this point in the history
Fixes public game UI control
  • Loading branch information
gorco committed Sep 16, 2016
2 parents af5a101 + 64a2998 commit 430009d
Showing 1 changed file with 44 additions and 44 deletions.
88 changes: 44 additions & 44 deletions app/views/data/config.jade
Original file line number Diff line number Diff line change
Expand Up @@ -14,52 +14,52 @@
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
.row(ng-if="isDeveloper()")
h1 Alerts & Warnings Setup
a(href="#", editable-text="selectedGame.link" onaftersave="changeGameLink()") Link: {{ selectedGame.link }}
.row
.col-md-8
.checkbox
label
input(type="checkbox" ng-change='publicGame()' ng-model='checkboxPublic')
| Public game
br
h1 Alerts & Warnings Setup
a(href="#", editable-text="selectedGame.link" onaftersave="changeGameLink()") Link: {{ selectedGame.link }}
.row
.col-md-8
.checkbox
label
input(type="checkbox" ng-change='publicGame()' ng-model='checkboxPublic')
| Public game
br
.row.top10
.col-sm-12
h4 Session information
.row.top10(ng-if="selectedVersion")
.col-sm-12
ul
li
span Alias
| =
a(href="#", editable-text="selectedVersion.alias" onbeforesave="saveVersion()") {{ selectedVersion.alias || 'this.name' }}
.row(ng-controller="DataCtrl")
.row.top10
.col-sm-12
strong Warnings
a.glyphicon.glyphicon-plus(ng-click="addWarning()")
.row.top10(ng-if="selectedVersion")
.col-sm-12
ul
li(ng-repeat="warning in selectedVersion.warnings")
span.right10.left10 Message:
a(href="#",editable-text="warning.message" onbeforesave="saveVersion()") {{ warning.message }}
span.right10.left10 Condition:
a(href="#",editable-text="warning.cond" onbeforesave="saveVersion()") {{ warning.cond }}
button.left10.btn.btn-xs.btn-default(ng-click="deleteFromList('warnings', warning)") Delete
.row.top10
.col-sm-12
h4 Session information
strong Alerts
a.glyphicon.glyphicon-plus(ng-click="addAlert()")
.row.top10(ng-if="selectedVersion")
.col-sm-12
ul
li
span Alias
| =
a(href="#", editable-text="selectedVersion.alias" onbeforesave="saveVersion()") {{ selectedVersion.alias || 'this.name' }}
.row(ng-controller="DataCtrl")
.row.top10
.col-sm-12
strong Warnings
a.glyphicon.glyphicon-plus(ng-click="addWarning()")
.row.top10(ng-if="selectedVersion")
.col-sm-12
ul
li(ng-repeat="warning in selectedVersion.warnings")
span.right10.left10 Message:
a(href="#",editable-text="warning.message" onbeforesave="saveVersion()") {{ warning.message }}
span.right10.left10 Condition:
a(href="#",editable-text="warning.cond" onbeforesave="saveVersion()") {{ warning.cond }}
button.left10.btn.btn-xs.btn-default(ng-click="deleteFromList('warnings', warning)") Delete
.row.top10
.col-sm-12
strong Alerts
a.glyphicon.glyphicon-plus(ng-click="addAlert()")
.row.top10(ng-if="selectedVersion")
.col-sm-12
ul
li(ng-repeat="alert in selectedVersion.alerts")
span.right10.left10 Message:
a(href="#",editable-text="alert.message" onbeforesave="saveVersion()") {{ alert.message }}
span.right10.left10 Value:
a(href="#",editable-text="alert.value" onbeforesave="saveVersion()") {{ alert.value || 'Not set' }}
span.right10.left10 Maximum difference:
a(href="#",editable-number="alert.maxDiff" e-step="any" onbeforesave="saveVersion()") {{ alert.maxDiff }}
button.left10.btn.btn-xs.btn-default(ng-click="deleteFromList('alerts', alert)") Delete
li(ng-repeat="alert in selectedVersion.alerts")
span.right10.left10 Message:
a(href="#",editable-text="alert.message" onbeforesave="saveVersion()") {{ alert.message }}
span.right10.left10 Value:
a(href="#",editable-text="alert.value" onbeforesave="saveVersion()") {{ alert.value || 'Not set' }}
span.right10.left10 Maximum difference:
a(href="#",editable-number="alert.maxDiff" e-step="any" onbeforesave="saveVersion()") {{ alert.maxDiff }}
button.left10.btn.btn-xs.btn-default(ng-click="deleteFromList('alerts', alert)") Delete

0 comments on commit 430009d

Please sign in to comment.