Last active
November 15, 2017 19:07
Revisions
-
jamband revised this gist
Sep 1, 2013 . 16 changed files with 210 additions and 214 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,36 +0,0 @@ This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,34 @@ <div class="form"> {% set form = this.beginWidget('CActiveForm', { 'id': 'hoge-form', 'enableAjaxValidation': false, }) %} <p class="note">Fields with <span class="required">*</span> are required.</p> {{ form.errorSummary(model) }} <div class="row"> {{ form.labelEx(model, 'userid') }} {{ form.textField(model, 'userid') }} {{ form.error(model, 'userid') }} </div><!-- /.row --> <div class="row"> {{ form.labelEx(model, 'fuga') }} {{ form.textField(model, 'fuga', {'size': 60, 'maxlength': 64}) }} {{ form.error(model, 'fuga') }} </div><!-- /.row --> <div class="row"> {{ form.labelEx(model, 'piyo') }} {{ form.textField(model, 'piyo', {'size': 60, 'maxlength': 64}) }} {{ form.error(model, 'piyo') }} </div><!-- /.row --> <div class="row buttons"> {{ C.Html.submitButton(model.isNewRecord ? 'Create' : 'Save') }} </div><!-- /.row buttons --> {% do this.endWidget %} </div><!-- form --> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,19 +0,0 @@ This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ <div class="view"> <b>{{ data.getAttributeLabel('id')|e }}</b> {{ C.Html.link(data.id|e, {0: 'view', 'id': data.id}) }} <br /> <b>{{ data.getAttributeLabel('userid')|e }}</b> {{ data.userid|e }} <br /> <b>{{ data.getAttributeLabel('fuga')|e }}</b> {{ data.fuga|e }} <br /> <b>{{ data.getAttributeLabel('piyo')|e }}</b> {{ data.piyo|e }} <br /> </div><!-- /.view --> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,23 +1,23 @@ {% do this.setBreadCrumbs({ 'Hoges': ['index'], 0: 'Manage', }) %} {% do this.setMenu([ {'label': 'List Hoge', 'url': ['index']}, {'label': 'Create Hoge', 'url': ['create']}, ]) %} {{ void(App.clientScript.registerScript('search', " $('.search-button').click(function(){ $('.search-form').toggle(); return false; }); $('.search-form form').submit(function(){ $.fn.yiiGridView.update('hoge-grid', { data: $(this).serialize() }); return false; }); ")) }} @@ -31,14 +31,14 @@ <h1>Manage Hoges</h1> {{ C.Html.link('Advanced Search', '#', {'class': 'search-button'}) }} <div class="search-form" style="display:none"> {% include 'views/hoge/_search.twig' with {'model': model} %} </div><!-- /.search-form --> {% do this.widget('zii.widgets.grid.CGridView', { 'id': 'hoge-grid', 'dataProvider': model.search, 'filter': model, 'columns': [ 'id', 'userid', 'fuga', 'piyo', {'class': 'CButtonColumn'}, ], }) %} This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,10 +2,12 @@ {% block container %} <div class="container"> <div id="content"> {% block content %} {{ content }} {% endblock content %} </div><!-- /#content --> </div><!-- /.container --> {% endblock container %} This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,25 +0,0 @@ This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,28 @@ {% extends 'views/layouts/main.twig' %} {% block container %} <div class="container"> <div class="span-19"> <div id="content"> {% block content %} {{ content }} {% endblock content %} </div><!-- ./content --> </div><!-- /.span-19 --> <div class="span-5 last"> <div id="sidebar"> {% do this.beginWidget('zii.widgets.CPortlet', { 'title': 'Operations', }) %} {% do this.widget('zii.widgets.CMenu', { 'items': this.menu, 'htmlOptions': {'class': 'operations'}, }) %} {% do this.endWidget %} </div><!-- /.sidebar --> </div><!-- /.span-5 last --> </div><!-- /.container --> {% endblock container %} This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,13 +0,0 @@ This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ {% do this.setBreadcrumbs(['Hoges']) %} {% do this.setMenu([ {'label': 'Create Hoge', 'url': ['create']}, {'label': 'Manage Hoge', 'url': ['admin']}, ]) %} <h1>Hoges</h1> {% do this.widget('zii.widgets.CListView', { 'dataProvider': dataProvider, 'itemView': '_view', }) %} This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,58 +0,0 @@ This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,53 @@ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="language" content="ja" /> <!-- blueprint CSS framework --> <link rel="stylesheet" type="text/css" href="{{ App.baseUrl }}/css/screen.css" media="screen, projection" /> <link rel="stylesheet" type="text/css" href="{{ App.baseUrl }}/css/print.css" media="print" /> <!--[if lt IE 8]> <link rel="stylesheet" type="text/css" href="{{ App.baseUrl }}/css/ie.css" media="screen, projection" /> <![endif]--> <link rel="stylesheet" type="text/css" href="{{ App.baseUrl }}/css/main.css" /> <link rel="stylesheet" type="text/css" href="{{ App.baseUrl }}/css/form.css" /> <title>{{ this.pageTitle|e }}</title> </head> <body> <div class="container" id="page"> <div id="header"> <div id="logo">{{ App.name|e }}</div> </div><!-- /#header --> <div id="mainmenu"> {% do this.widget('zii.widgets.CMenu', { 'items': [ {'label': 'Home', 'url': ['/hoge/index']}, {'label': 'About', 'url': ['/site/about']}, {'label': 'Contact', 'url': ['/site/contact']}, {'label': 'Login', 'url': ['/site/login'], 'visible': App.user.isGuest}, {'label': 'Logout ('~App.user.name~')', 'url': ['/site/logout'], 'visible': not App.user.isGuest}, {'label': 'Gii', 'url': ['/gii']}, ], }) %} </div><!-- /#mainmenu --> {% if this.breadcrumbs %} {% do this.widget('zii.widgets.CBreadcrumbs', { 'links': this.breadcrumbs, }) %} {% endif %} {% block container %} {% endblock container %} <div id="footer"> Copyright © {{ now|date('Y') }} by My Company.<br/> All Rights Reserved.<br/> {{ Yii.powered }} </div><!-- /#footer --> </div><!-- /.container #page --> </body> </html> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,16 +0,0 @@ This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ {% do this.setBreadcrumbs({ 'Hoges': ['index'], (model.id): {0: 'view', 'id': model.id}, 0: 'Update', }) %} {% do this.setMenu([ {'label': 'List Hoge', 'url': ['index']}, {'label': 'Create Hoge', 'url': ['create']}, {'label': 'View Hoge', 'url': {0: 'view', 'id': model.id}}, {'label': 'Manage Hoge', 'url': ['admin']}, ]) %} <h1>Update Hoge {{ model.id }}</h1> {% include 'views/hoge/_form.twig' with {'model': model} %} This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,22 +0,0 @@ This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,22 @@ {% do this.setBreadcrumbs({ 'Hoges': ['index'], 0: model.id, }) %} {% do this.setMenu([ {'label': 'List Hoge', 'url': ['index']}, {'label': 'Create Hoge', 'url': ['create']}, {'label': 'Update Hoge', 'url': {0: 'update', 'id': model.id}}, {'label': 'Delete Hoge', 'url': '#', 'linkOptions': {'submit': {0: 'delete', 'id': model.id}, 'confirm': 'Are you sure you want to delete this item?'}}, {'label': 'Manage Hoge', 'url': ['admin']}, ]) %} <h1>View Hoge #{{ model.id }}</h1> {% do this.widget('zii.widgets.CDetailView', { 'data': model, 'attributes': [ 'id', 'userid', 'fuga', 'piyo', 'is_deleted', ] }) %} -
jamband renamed this gist
Sep 1, 2013 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
jamband revised this gist
Apr 8, 2012 . No changes.There are no files selected for viewing
-
jamband revised this gist
Mar 15, 2012 . 8 changed files with 53 additions and 43 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -31,7 +31,6 @@ {{ C.Html.submitButton(model.isNewRecord ? 'Create' : 'Save') }} </div> {% do this.endWidget %} </div><!-- form --> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,12 +1,12 @@ {% do this.setBreadCrumbs({ 'Hoges': ['index'], 0: 'Manage', }) %} {% do this.setMenu([ {'label': 'List Hoge', 'url': ['index']}, {'label': 'Create Hoge', 'url': ['create']}, ]) %} {{ void(App.clientScript.registerScript('search', " $('.search-button').click(function(){ @@ -30,15 +30,15 @@ <h1>Manage Hoges</h1> {{ C.Html.link('Advanced Search', '#', {'class': 'search-button'}) }} <div class="search-form" style="display:none"> {% include 'views/hoge/_search.twig' with {'model': model} %} </div><!-- search-form --> {% do this.widget('zii.widgets.grid.CGridView', { 'id': 'hoge-grid', 'dataProvider': model.search, 'filter': model, 'columns': [ 'id', 'userid', 'fuga', 'piyo', {'class': 'CButtonColumn'}, ], }) %} This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,11 @@ {% extends 'views/layouts/main.twig' %} {% block container %} <div class="container"> <div id="content"> {% block content %} {{ content }} {% endblock content %} </div><!-- content --> </div> {% endblock container %} This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,21 +1,25 @@ {% extends 'views/layouts/main.twig' %} {% block container %} <div class="container"> <div class="span-19"> <div id="content"> {% block content %} {{ content }} {% endblock content %} </div><!-- content --> </div> <div class="span-5 last"> <div id="sidebar"> {% do this.beginWidget('zii.widgets.CPortlet', { 'title': 'Operations', }) %} {% do this.widget('zii.widgets.CMenu', { 'items': this.menu, 'htmlOptions': {'class': 'operations'}, }) %} {% do this.endWidget %} </div><!-- sidebar --> </div> </div> {% endblock container %} This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,13 +1,13 @@ {% do this.setBreadcrumbs(['Hoges']) %} {% do this.setMenu([ {'label': 'Create Hoge', 'url': ['create']}, {'label': 'Manage Hoge', 'url': ['admin']}, ]) %} <h1>Hoges</h1> {% do this.widget('zii.widgets.CListView', { 'dataProvider': dataProvider, 'itemView': '_view', }) %} This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -26,24 +26,25 @@ </div><!-- header --> <div id="mainmenu"> {% do this.widget('zii.widgets.CMenu', { 'items': [ {'label': 'Home', 'url': ['/hoge/index']}, {'label': 'About', 'url': ['/site/about']}, {'label': 'Contact', 'url': ['/site/contact']}, {'label': 'Login', 'url': ['/site/login'], 'visible': App.user.isGuest}, {'label': 'Logout ('~App.user.name~')', 'url': ['/site/logout'], 'visible': not App.user.isGuest}, {'label': 'Gii', 'url': ['/gii']}, ], }) %} </div><!-- mainmenu --> {% if this.breadcrumbs %} {% do this.widget('zii.widgets.CBreadcrumbs', { 'links': this.breadcrumbs, }) %}<!-- breadcrumbs --> {% endif %} {% block container %} {% endblock container %} <div id="footer"> Copyright © {{ now|date('Y') }} by My Company.<br/> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,16 +1,16 @@ {% do this.setBreadcrumbs({ 'Hoges': ['index'], (model.id): {0: 'view', 'id': model.id}, 0: 'Update', }) %} {% do this.setMenu([ {'label': 'List Hoge', 'url': ['index']}, {'label': 'Create Hoge', 'url': ['create']}, {'label': 'View Hoge', 'url': {0: 'view', 'id': model.id}}, {'label': 'Manage Hoge', 'url': ['admin']}, ]) %} <h1>Update Hoge {{ model.id }}</h1> {% include 'views/hoge/_form.twig' with {'model': model} %} This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,20 +1,22 @@ {% do this.setBreadcrumbs({ 'Hoges': ['index'], 0: model.id, }) %} {% do this.setMenu([ {'label': 'List Hoge', 'url': ['index']}, {'label': 'Create Hoge', 'url': ['create']}, {'label': 'Update Hoge', 'url': {0: 'update', 'id': model.id}}, {'label': 'Delete Hoge', 'url': '#', 'linkOptions': {'submit': {0: 'delete', 'id': model.id}, 'confirm': 'Are you sure you want to delete this item?'}}, {'label': 'Manage Hoge', 'url': ['admin']}, ]) %} <h1>View Hoge #{{ model.id }}</h1> {% do this.widget('zii.widgets.CDetailView', { 'data': model, 'attributes': [ 'id', 'userid', 'fuga', 'piyo', 'is_deleted', ] }) %} -
jamband revised this gist
Mar 14, 2012 . 6 changed files with 84 additions and 24 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,29 +1,37 @@ <div class="form"> {% set form=this.beginWidget('CActiveForm', { 'id': 'hoge-form', 'enableAjaxValidation': false, }) %} <p class="note">Fields with <span class="required">*</span> are required.</p> {{ form.errorSummary(model) }} <div class="row"> {{ form.labelEx(model, 'userid') }} {{ form.textField(model, 'userid') }} {{ form.error(model, 'userid') }} </div> <div class="row"> {{ form.labelEx(model, 'fuga') }} {{ form.textField(model, 'fuga', {'size': 60, 'maxlength': 64}) }} {{ form.error(model, 'fuga') }} </div> <div class="row"> {{ form.labelEx(model, 'piyo') }} {{ form.textField(model, 'piyo', {'size': 60, 'maxlength': 64}) }} {{ form.error(model, 'piyo') }} </div> <div class="row buttons"> {{ C.Html.submitButton(model.isNewRecord ? 'Create' : 'Save') }} </div> {{ void(this.endWidget) }} </div><!-- form --> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,24 +1,44 @@ {{ this.setBreadCrumbs({ 'Hoges': ['index'], 0: 'Manage', }) }} {{ this.setMenu([ {'label': 'List Hoge', 'url': ['index']}, {'label': 'Create Hoge', 'url': ['create']}, ]) }} {{ void(App.clientScript.registerScript('search', " $('.search-button').click(function(){ $('.search-form').toggle(); return false; }); $('.search-form form').submit(function(){ $.fn.yiiGridView.update('hoge-grid', { data: $(this).serialize() }); return false; }); ")) }} <h1>Manage Hoges</h1> <p> You may optionally enter a comparison operator (<b><</b>, <b><=</b>, <b>></b>, <b>>=</b>, <b><></b> or <b>=</b>) at the beginning of each of your search values to specify how the comparison should be done. </p> {{ C.Html.link('Advanced Search', '#', {'class': 'search-button'}) }} <div class="search-form" style="display:none"> {{ this.renderPartial('_search', {'model': model}) }} </div><!-- search-form --> {{ this.widget('zii.widgets.grid.CGridView', { 'id': 'hoge-grid', 'dataProvider': model.search, 'filter': model, 'columns': [ 'id', 'userid', 'fuga', 'piyo', {'class': 'CButtonColumn'}, ], }, true) }} This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -14,7 +14,7 @@ 'items': this.menu, 'htmlOptions': {'class': 'operations'}, }, true) }} {{ void(this.endWidget) }} </div><!-- sidebar --> </div> </div> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,10 @@ {{ this.setBreadcrumbs(['Hoges']) }} {{ this.setMenu([ {'label': 'Create Hoge', 'url': ['create']}, {'label': 'Manage Hoge', 'url': ['admin']}, ]) }} <h1>Hoges</h1> {{ this.widget('zii.widgets.CListView', { This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ {{ this.setBreadcrumbs({ 'Hoges': ['index'], (model.id): {0: 'view', 'id': model.id}, 0: 'Update', }) }} {{ this.setMenu([ {'label': 'List Hoge', 'url': ['index']}, {'label': 'Create Hoge', 'url': ['create']}, {'label': 'View Hoge', 'url': {0: 'view', 'id': model.id}}, {'label': 'Manage Hoge', 'url': ['admin']}, ]) }} <h1>Update Hoge {{ model.id }}</h1> {{ this.renderPartial('_form', {'model': model}) }} This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,11 +1,20 @@ {{ this.setBreadcrumbs({ 'Hoges': ['index'], 0: model.id, }) }} {{ this.setMenu([ {'label': 'List Hoge', 'url': ['index']}, {'label': 'Create Hoge', 'url': ['create']}, {'label': 'Update Hoge', 'url': {0: 'update', 'id': model.id}}, {'label': 'Delete Hoge', 'url': '#', 'linkOptions': {'submit': {0: 'delete', 'id': model.id}, 'confirm': 'Are you sure you want to delete this item?'}}, ]) }} <h1>View Hoge #{{ model.id }}</h1> {{ this.widget('zii.widgets.CDetailView', { 'data': model, 'attributes': [ 'id', 'userid', 'fuga', 'piyo', ], }, true) }} -
jamband revised this gist
Mar 11, 2012 . 2 changed files with 13 additions and 7 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,10 +7,14 @@ </div> <div class="span-5 last"> <div id="sidebar"> {{ void(this.beginWidget('zii.widgets.CPortlet', { 'title': 'Operations', })) }} {{ this.widget('zii.widgets.CMenu', { 'items': this.menu, 'htmlOptions': {'class': 'operations'}, }, true) }} {{ void(this.endWidget()) }} </div><!-- sidebar --> </div> </div> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -28,25 +28,27 @@ <div id="mainmenu"> {{ this.widget('zii.widgets.CMenu', { 'items': [ {'label': 'Home', 'url': ['/hoge/index']}, {'label': 'About', 'url': ['/site/about']}, {'label': 'Contact', 'url': ['/site/contact']}, {'label': 'Login', 'url': ['/site/login'], 'visible': App.user.isGuest}, {'label': 'Logout ('~App.user.name~')', 'url': ['/site/logout'], 'visible': App.user.id}, {'label': 'Gii', 'url': ['/gii']}, ] }, true) }} </div><!-- mainmenu --> {% if this.breadcrumbs %} {{ this.widget('zii.widgets.CBreadcrumbs', { 'links': this.breadcrumbs, }, true) }}<!-- breadcrumbs --> {% endif %} {{ content }} <div id="footer"> Copyright © {{ now|date('Y') }} by My Company.<br/> All Rights Reserved.<br/> {{ Yii.powered }} </div><!-- footer --> </div><!-- page --> -
jamband revised this gist
Feb 28, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -18,7 +18,7 @@ <div class="row"> {{ C.Html.activeLabel(model, 'piyo') }} {{ C.Html.activeTextField(model, 'piyo', {'size': 60, 'maxlength': 64}) }} {{ C.Html.error(model, 'piyo') }} </div> -
jamband revised this gist
Feb 28, 2012 . 7 changed files with 22 additions and 22 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -12,7 +12,7 @@ <div class="row"> {{ C.Html.activeLabel(model, 'fuga') }} {{ C.Html.activeTextField(model, 'fuga', {'size': 60, 'maxlength': 64}) }} {{ C.Html.error(model, 'fuga') }} </div> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ <div class="view"> <b>{{ data.getAttributeLabel('id')|e }}</b> {{ C.Html.link(data.id|e, {0: 'view', 'id': data.id}) }} <br /> <b>{{ data.getAttributeLabel('userid')|e }}</b> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,20 +5,20 @@ <h1>Manage Hoges</h1> or <b>=</b>) at the beginning of each of your search values to specify how the comparison should be done. </p> <a href="{{ this.createUrl('#', {'class': 'search-button'}) }}">Advanced Search</a> <div class="search-form" style="display:none"> {{ this.renderPartial('_search', {'model': model}) }} </div><!-- search-form --> {{ this.widget('zii.widgets.grid.CGridView', { 'id': 'hoge-grid', 'dataProvider': model.search(), 'filter': model, 'columns': [ 'id', 'userid', 'fuga', 'piyo', {'class': 'CButtonColumn'}, ], }, true) }} This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,8 +8,8 @@ <div class="span-5 last"> <div id="sidebar"> {{ this.widget('zii.widgets.CMenu', { 'items': this.menu, 'htmlOptions': {'class': 'operations'}, }, true) }} </div><!-- sidebar --> </div> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ <h1>Hoges</h1> {{ this.widget('zii.widgets.CListView', { 'dataProvider': dataProvider, 'itemView': '_view', }, true) }} This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -27,18 +27,18 @@ <div id="mainmenu"> {{ this.widget('zii.widgets.CMenu', { 'items': [ {'label': 'Home', 'url': ['/site/index']}, {'label': 'About', 'url': ['/site/about']}, {'label': 'Contact', 'url': ['/site/contact']}, {'label': 'Login', 'url': ['/site/login'], 'visible': App.user.isGuest}, {'label': 'Logout ('~App.user.name~')', 'url': ['/site/logout'], 'visible': not App.user.isGuest} ] }, true) }} </div><!-- mainmenu --> {% if this.breadcrumbs %} {{ this.widget('zii.widgets.CBreadcrumbs', { 'links': this.breadcrumbs, }, true) }} {% endif %} This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,8 @@ <h1>View Hoge #{{ model.id }}</h1> {{ this.widget('zii.widgets.CDetailView', { 'data': model, 'attributes': [ 'id', 'userid', 'fuga', -
jamband revised this gist
Feb 28, 2012 . 2 changed files with 7 additions and 7 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -12,13 +12,13 @@ <div class="row"> {{ C.Html.activeLabel(model, 'fuga') }} {{ C.Html.activeTextField(model, 'fuga', {'size' : 60, 'maxlength' : 64}) }} {{ C.Html.error(model, 'fuga') }} </div> <div class="row"> {{ C.Html.activeLabel(model, 'piyo') }} {{ C.Html.activeTextField(model, 'piyo', {'size' : 60, 'maxlength' : 64}) }} {{ C.Html.error(model, 'piyo') }} </div> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,14 +5,14 @@ <meta name="language" content="ja" /> <!-- blueprint CSS framework --> <link rel="stylesheet" type="text/css" href="{{ App.baseUrl }}/css/screen.css" media="screen, projection" /> <link rel="stylesheet" type="text/css" href="{{ App.baseUrl }}/css/print.css" media="print" /> <!--[if lt IE 8]> <link rel="stylesheet" type="text/css" href="{{ App.baseUrl }}/css/ie.css" media="screen, projection" /> <![endif]--> <link rel="stylesheet" type="text/css" href="{{ App.baseUrl }}/css/main.css" /> <link rel="stylesheet" type="text/css" href="{{ App.baseUrl }}/css/form.css" /> <title>{{ this.pageTitle|e }}</title> </head> -
jamband revised this gist
Feb 24, 2012 . 7 changed files with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes.File renamed without changes.File renamed without changes.File renamed without changes.File renamed without changes.File renamed without changes.File renamed without changes. -
jamband renamed this gist
Feb 24, 2012 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
jamband revised this gist
Feb 24, 2012 . No changes.There are no files selected for viewing
-
jamband renamed this gist
Feb 24, 2012 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
jamband revised this gist
Feb 24, 2012 . 7 changed files with 161 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,29 @@ <div class="form"> {{ C.Html.form() }} <p class="note">Fields with <span class="required">*</span> are required.</p> {{ C.Html.errorSummary(model) }} <div class="row"> {{ C.Html.activeLabel(model, 'userid') }} {{ C.Html.activeTextField(model, 'userid') }} {{ C.Html.error(model, 'userid') }} </div> <div class="row"> {{ C.Html.activeLabel(model, 'fuga') }} {{ C.Html.activeTextField(model, 'fuga', {'size' : 60, 'maxlfugath' : 64}) }} {{ C.Html.error(model, 'fuga') }} </div> <div class="row"> {{ C.Html.activeLabel(model, 'piyo') }} {{ C.Html.activeTextField(model, 'piyo', {'size' : 60, 'maxlfugath' : 64}) }} {{ C.Html.error(model, 'piyo') }} </div> <div class="row buttons"> {{ C.Html.submitButton(model.isNewRecord ? 'Create' : 'Save') }} </div> </div><!-- form --> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ <div class="view"> <b>{{ data.getAttributeLabel('id')|e }}</b> <a href="{{ this.createUrl('view', {'id' : data.id}) }}">{{ data.id|e }}</a> <br /> <b>{{ data.getAttributeLabel('userid')|e }}</b> {{ data.userid|e }} <br /> <b>{{ data.getAttributeLabel('fuga')|e }}</b> {{ data.fuga|e }} <br /> <b>{{ data.getAttributeLabel('piyo')|e }}</b> {{ data.piyo|e }} <br /> </div> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,24 @@ <h1>Manage Hoges</h1> <p> You may optionally enter a comparison operator (<b><</b>, <b><=</b>, <b>></b>, <b>>=</b>, <b><></b> or <b>=</b>) at the beginning of each of your search values to specify how the comparison should be done. </p> <a href="{{ this.createUrl('#', {'class' : 'search-button'}) }}">Advanced Search</a> <div class="search-form" style="display:none"> {{ this.renderPartial('_search', {'model' : model}) }} </div><!-- search-form --> {{ this.widget('zii.widgets.grid.CGridView', { 'id' : 'hoge-grid', 'dataProvider' : model.search(), 'filter' : model, 'columns' : [ 'id', 'userid', 'fuga', 'piyo', {'class' : 'CButtonColumn'}, ], }, true) }} This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ {{ this.beginContent('//layouts/main') }} <div class="container"> <div class="span-19"> <div id="content"> {{ content }} </div><!-- content --> </div> <div class="span-5 last"> <div id="sidebar"> {{ this.widget('zii.widgets.CMenu', { 'items' : this.menu, 'htmlOptions' : {'class' : 'operations'}, }, true) }} </div><!-- sidebar --> </div> </div> {{ this.endContent() }} This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ <h1>Hoges</h1> {{ this.widget('zii.widgets.CListView', { 'dataProvider' : dataProvider, 'itemView' : '_view', }, true) }} This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,55 @@ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="language" content="ja" /> <!-- blueprint CSS framework --> <link rel="stylesheet" type="text/css" href="{{ App.request.baseUrl }}/css/screen.css" media="screen, projection" /> <link rel="stylesheet" type="text/css" href="{{ App.request.baseUrl }}/css/print.css" media="print" /> <!--[if lt IE 8]> <link rel="stylesheet" type="text/css" href="{{ App.request.baseUrl }}/css/ie.css" media="screen, projection" /> <![endif]--> <link rel="stylesheet" type="text/css" href="{{ App.request.baseUrl }}/css/main.css" /> <link rel="stylesheet" type="text/css" href="{{ App.request.baseUrl }}/css/form.css" /> <title>{{ this.pageTitle|e }}</title> </head> <body> <div class="container" id="page"> <div id="header"> <div id="logo">{{ App.name|e }}</div> </div><!-- header --> <div id="mainmenu"> {{ this.widget('zii.widgets.CMenu', { 'items' : [ {'label' : 'Home', 'url' : ['/site/index']}, {'label' : 'About', 'url' : ['/site/about']}, {'label' : 'Contact', 'url' : ['/site/contact']}, {'label' : 'Login', 'url' : ['/site/login'], 'visible' : App.user.isGuest}, {'label' : 'Logout ('~App.user.name~')', 'url' : ['/site/logout'], 'visible' : not App.user.isGuest} ] }, true) }} </div><!-- mainmenu --> {% if this.breadcrumbs %} {{ this.widget('zii.widgets.CBreadcrumbs', { 'links' : this.breadcrumbs, }, true) }} {% endif %} {{ content }} <div id="footer"> Copyright © {{ now|date('Y') }} by My Company.<br/> All Rights Reserved.<br/> </div><!-- footer --> </div><!-- page --> </body> </html> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ <h1>View Hoge #{{ model.id }}</h1> {{ this.widget('zii.widgets.CDetailView', { 'data' : model, 'attributes' : [ 'id', 'userid', 'fuga', 'piyo', ], }, true) }} -
jamband created this gist
Feb 24, 2012 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ {{ this.beginContent('//layouts/main') }} <div class="container"> <div id="content"> {{ content }} </div><!-- content --> </div> {{ this.endContent() }}