Skip to content

Commit

Permalink
OC-14203 Update Form Designer Appearance label
Browse files Browse the repository at this point in the history
  • Loading branch information
gushil committed Jan 8, 2021
1 parent f01a2e0 commit 5dfaea1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion jsapp/js/i18nMissingStrings.es6
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ test= t('Default response');
test= t('Repeat');
test= t('Repeat this group if necessary');
test= t('Mandatory response');
test= t('Appearance (advanced)');
test= t('Appearance');
test= t('Show all questions in this group on the same screen');
test= t('Please check your connection and try again.');
test= t('The server encountered an error while trying to deploy the project. If this problem persists, please contact <a href="mailto:help@kobotoolbox.org">help@kobotoolbox.org</a>.');
Expand Down
6 changes: 3 additions & 3 deletions jsapp/xlform/src/view.rowDetail.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -572,17 +572,17 @@ module.exports = do ->
@is_checkbox_samescreen = false
@$el.addClass("card__settings__fields--active")
if @model_is_group(@model)
return viewRowDetail.Templates.textbox @cid, @model.key, _t("Appearance (advanced)"), 'text'
return viewRowDetail.Templates.textbox @cid, @model.key, _t("Appearance"), 'text'
else
if @model_type() isnt 'calculate'
appearances = @getTypes()
if appearances?
appearances.push 'other'
appearances.unshift 'select'
@is_input_select = true
return viewRowDetail.Templates.dropdown @cid, @model.key, appearances, _t("Appearance (advanced)")
return viewRowDetail.Templates.dropdown @cid, @model.key, appearances, _t("Appearance")
else
return viewRowDetail.Templates.textbox @cid, @model.key, _t("Appearance (advanced)"), 'text'
return viewRowDetail.Templates.textbox @cid, @model.key, _t("Appearance"), 'text'

model_is_group: (model) ->
model._parent.constructor.key == 'group'
Expand Down

0 comments on commit 5dfaea1

Please sign in to comment.