Don't show cancel button on edit page.

This commit is contained in:
Guo Xiang Tan 2018-03-27 19:31:53 +08:00
parent b06104a1da
commit 94deb482ae
2 changed files with 7 additions and 4 deletions

View File

@ -184,8 +184,6 @@
class='btn btn-primary'
label=saveLabel}}
{{#link-to "groups"}}
{{i18n 'cancel'}}
{{/link-to}}
{{yield}}
</div>
</form>

View File

@ -1,7 +1,12 @@
{{#d-section pageClass="groups-new"}}
<h1>{{i18n "groups.new.title"}}</h1>
{{group-form model=model
{{#group-form model=model
saveLabel="groups.new.create"
save="save"}}
{{#link-to "groups"}}
{{i18n 'cancel'}}
{{/link-to}}
{{/group-form}}
{{/d-section}}