Home >Java >javaTutorial >PlayFramework completely implements an APP (12)

PlayFramework completely implements an APP (12)

黄舟
黄舟Original
2016-12-23 16:53:041302browse

1. Customize the CRUD management page

> play crud:ov --layout

 

Replace the generated file content app/views/CRUD/layout.html

#{extends 'admin.html' /}
# {set 'moreStyles'}
  href="@{'/public/stylesheets/crud.css'}" />
# {/set}



#{if Flash.success}

${flash.success}
F#{/if}
#{if flash.error || error}
& lt; div class = "crudflash flasherror" & gt;
$ {error?: Flash.error} {/if }


#{doLayout /}






2. Customize the login pagePlayFramework completely implements an APP (12)

play secure:ov - -css

 

Modify /public/stylesheets/secure.css

@import url(main.css);

 

Import main.css

Modify /conf/messages

secure .username =Your email:

secure.passWord=Your password:

secure.signin=Log in now




The above is the content of PlayFramework to completely implement an APP (Twelve). For more related content, please pay attention to the PHP Chinese website ( www.php.cn)! PlayFramework completely implements an APP (12)


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn