Skip to content
This repository was archived by the owner on Nov 6, 2019. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ window.camptix = window.camptix || { models: {}, views: {}, collections: {} };
model: this.model.toJSON(),
fields: camptix.collections.segmentFields.toJSON(),
ops: selectedField.get( 'ops' ),
type: selectedField.get( 'type' )
type: selectedField.get( 'type' ),
placeholder: selectedField.get('placeholder')
};

if ( data.type == 'select' ) {
Expand Down Expand Up @@ -130,7 +131,8 @@ window.camptix = window.camptix || { models: {}, views: {}, collections: {} };
caption: '',
option_value: '',
ops: [ 'is', 'is not' ],
values: []
values: [],
placeholder: ''
}
});

Expand Down
5 changes: 3 additions & 2 deletions camptix.php
Original file line number Diff line number Diff line change
Expand Up @@ -3191,7 +3191,7 @@ function menu_tools_notify() {
<# }); #>
</select>
<# } else if ( data.type == 'text' ) { #>
<input type="text" class="segment-value regular-text" value="{{ data.model.value }}" />
<input placeholder="{{ data.placeholder }}" type="text" class="segment-value regular-text" value="{{ data.model.value }}" />
<# } #>
</div>

Expand Down Expand Up @@ -3226,7 +3226,8 @@ function menu_tools_notify() {
caption: 'Purchase date',
option_value: 'date',
type: 'text',
ops: [ 'before', 'after' ]
ops: [ 'before', 'after' ],
placeholder: 'YYYY-MM-DD',
}));

<?php foreach ( $this->get_all_questions() as $question ) : ?>
Expand Down