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

PlayFramework completely implements an APP (12)

黄舟
Release: 2016-12-23 16:53:04
Original
1308 people have browsed it

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 ( m.sbmmt.com)! PlayFramework completely implements an APP (12)


Related labels:
app
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template