Skip to content

Commit

Permalink
clean up primary name function, re #997
Browse files Browse the repository at this point in the history
  • Loading branch information
apeters committed Nov 8, 2016
1 parent d5e3e1c commit 7fa9ef9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions arches/app/media/js/views/functions/primary-name.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
define(['knockout',
'knockout-mapping',
'viewmodels/function',
'models/card',
'bindings/chosen'],
function (ko, koMapping, FunctionViewModel, CardModel, chosen) {
function (ko, koMapping, FunctionViewModel, chosen) {
return ko.components.register('views/functions/primary-name', {
viewModel: function(params) {
FunctionViewModel.apply(this, params);
Expand Down
5 changes: 3 additions & 2 deletions arches/app/templates/views/functions/primary-name.htm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
</div>

<div class="col-xs-12">
<select placeholder="{% trans "Select a nodegroup" %}" data-bind="chosen: {width: '100%'}, value: nodegroup_id, options: cards, optionsText: 'name', optionsValue: 'nodegroup_id'"></select>
<!-- <input placeholder="{% trans 'test' %}" class="form-control input-lg widget-input" data-bind="textInput: nodegroup_id"> -->
<select data-placeholder="{% trans "Select a card from which to choose nodes to power your identifier." %}" data-bind="chosen: {width: '100%', disable_search_threshold: 15}, value: nodegroup_id, options: cards, optionsText: 'name', optionsValue: 'nodegroup_id'"></select>
</div>
</div>
</div>
Expand All @@ -18,7 +19,7 @@
</div>

<div class="col-xs-12">
<input placeholder="{% trans "put something here..." %}" class="form-control input-lg widget-input" data-bind="textInput: string_template">
<input placeholder="{% trans 'Use bracketed node names like this: <node name>' %}" class="form-control input-lg widget-input" data-bind="textInput: string_template">
</div>
</div>
</div>
Expand Down

0 comments on commit 7fa9ef9

Please sign in to comment.