-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b93f829
commit 2602876
Showing
11 changed files
with
611 additions
and
0 deletions.
There are no files selected for viewing
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
{{response.files.append(URL('static','menu/js/article_edit.js'))}} | ||
{{extend "menu/app/layout.html"}} | ||
{{ | ||
css = {"main": "row-fluid", "widget": "", "input":" span12", "error": " control-group error"} | ||
}} | ||
|
||
<a href="http://www.menuvegano.com.br/page/show/mandiokejo"> | ||
<img src="{{=CURL('static','menu',args='invente.png')}}" /> | ||
</a> | ||
|
||
{{=article_form.custom.begin}} | ||
<div class="row-fluid edit-article-wrapper"> | ||
<div class="span8 alert" style="padding:0;margin:0;padding-bottom:20px;"> | ||
|
||
<fieldset class="span11"> | ||
<legend>{{=T("The Basics")}} {{=helpmodallink("#helprecipe")}}</legend> | ||
{{=customfield(article_form, 'title', css=css)}} | ||
{{=customfield(article_form, 'description', css=css)}} | ||
</fieldset> | ||
|
||
<!-- fieldset class="span11 collapsable"> | ||
<legend>{{=T("Video")}} <a onclick="jQuery('#videooptions').toggleClass('collapsed');"><small style="font-size:13px;cursor:pointer;">{{=T("(video options)")}}</small></a></legend> | ||
<div class="collapsed" id="videooptions"> | ||
{{=customfield(content_form, 'video_source', css=css)}} | ||
{{=customfield(content_form, 'video_embed', css=css)}} | ||
{{=customfield(content_form, 'active_tab', css=css)}} | ||
</div> | ||
</fieldset --> | ||
<input type="hidden" value="photo" id="cookrecipe_data_active_tab" name="active_tab" /> | ||
<!-- fieldset class="span11"> | ||
<legend>{{=T("Information")}} {{=helpmodallink("#helpinformation")}}</legend> | ||
<div class="span5"> | ||
{{=customfield(content_form, 'prep_time', css=css)}} | ||
{{=customfield(content_form, 'cook_time', css=css)}} | ||
</div> | ||
<div class="span5"> | ||
{{=customfield(content_form, 'difficulty', css=css)}} | ||
{{=customfield(content_form, 'servings', css=css)}} | ||
</div> | ||
</fieldset --> | ||
<input id="article_prep_time" name="prep_time" type="hidden" value="0" /> | ||
<input id="article_cook_time" name="cook_time" type="hidden" value="0" /> | ||
<input id="article_difficulty" name="difficulty" type="hidden" value="1" /> | ||
<input id="article_servings" name="servings" type="hidden" value="0"> | ||
|
||
<fieldset class="span11"> | ||
<legend>{{=T("Ingredients")}} {{=helpmodallink("#helpingredients")}}</legend> | ||
{{ingredients_css = {"main": "row-fluid", "widget": "", "input":" span12", "error": " control-group error", "label": "hidden"} | ||
}} | ||
{{=customfield(content_form, 'ingredients', css=ingredients_css)}} | ||
</fieldset> | ||
<!-- fieldset class="span11"> | ||
<legend>{{=T("Directions")}} {{=helpmodallink("#helptext")}}</legend> | ||
{{=customfield(content_form, 'instructions', css=ingredients_css)}} | ||
</fieldset --> | ||
<input id="article_instructions" name="instructions" type="hidden" value="Modo de preparo será adicionado depois." /> | ||
</div> | ||
|
||
{{ | ||
css2 = {"main": "row-fluid", "widget": "", "input":" span10", "error": " control-group error"} | ||
}} | ||
|
||
<div class="span3 article_form-actions" style="margin-top:0;"> | ||
|
||
<!-- fieldset class="span11"> | ||
<legend>{{=T("Category & Tags")}} {{=helpmodallink("#helpcategories")}}</legend> | ||
{{=customfield(article_form, 'category_id', css=css2)}} | ||
{{=customfield(article_form, 'tags', css=css2)}} | ||
</fieldset --> | ||
|
||
{{if user_is("admin"):}} | ||
<fieldset class="span11"> | ||
<legend>{{=T("options")}}</legend> | ||
{{#=customfield(article_form, 'privacy', css=css)}} | ||
{{#=customfield(article_form, 'license', css=css)}} | ||
{{=customfield(article_form, 'featured', css=css)}} | ||
{{=customfield(article_form, 'blocks', css=css)}} | ||
{{=customfield(article_form, 'publish_date', css=css)}} | ||
{{=customfield(article_form, 'author', css=css)}} | ||
</fieldset> | ||
{{pass}} | ||
|
||
<!-- fieldset class="span11"> | ||
<legend>{{=T("References")}}</legend> | ||
{{=customfield(content_form, 'credits', css=css2)}} | ||
</fieldset --> | ||
|
||
<fieldset class="span11"> | ||
<legend>{{=T("Save")}}</legend> | ||
{{#=customfield(article_form, 'draft', css=css2)}} | ||
<br /> | ||
<div id="article_draft__row" class="row-fluid"><div class="w2p_fl "><label id="article_draft__label" for="notify_subscribers">{{=T("Notify?")}}</label></div><div class="w2p_fc ">{{=T("Check to send edit notifications to subscribers")}}</div><div class="w2p_fw "><input type="checkbox" checked="checked" value="on" name="notify_subscribers" id="notify_subscribers" class="boolean span12"></div></div> | ||
|
||
<br /> | ||
<button class="full-width btn-primary btn-large" id="publish">{{=T("Save")}}</button> | ||
<button class="full-width btn-primary btn-large" id="draft">{{=T("Save as a draft")}}</button> | ||
</fieldset> | ||
</div> | ||
</div> | ||
{{=article_form.custom.end}} | ||
|
||
{{=helpmodal("helpinformation",IMG(_src=CURL('static','menu', args=['images', 'helpinformation.png'])),T("Help"), "width:600px;")}} | ||
{{=helpmodal("helpcategories",IMG(_src=CURL('static','menu', args=['images', 'helpcategories.png'])),T("Help"), "width:600px;")}} | ||
{{=helpmodal("helptext",IMG(_src=CURL('static','menu', args=['images', 'helptext.png'])),T("Help"), "width:700px;")}} | ||
{{=helpmodal("helpingredients",IMG(_src=CURL('static','menu', args=['images', 'helpingredients.png'])),T("Help"), "width:700px;")}} | ||
{{=helpmodal("helprecipe",IMG(_src=CURL('static','menu', args=['images', 'helprecipe.png'])),T("Help"), "width:800px;margin: -250px 0 0 -430px;")}} |
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{{response.files.append(URL('static','menu/js/article_list.js'))}} | ||
{{extend "menu/app/layout.html"}} | ||
<a href="http://www.menuvegano.com.br/page/show/mandiokejo"> | ||
<img src="{{=CURL('static','menu',args='invente.png')}}" /> | ||
</a> | ||
|
||
<blockquote> | ||
<h3> | ||
Ajude-nos a escolher a melhor combinação com Mandiokejo!<br> | ||
Clique em "curtir" e compartilhe no facebook! Quem tiver a sugestão mais curtida e mais compartilhada ganhará 1 kg de Mandiokejo!<br> | ||
</h3> | ||
</blockquote> | ||
|
||
<a class="btn btn-primary" href="http://www.menuvegano.com.br/article/new/ReceitaDiaDaPizza">Envie sua sugestão!</a> | ||
<hr> | ||
<div class="row-fluid"> | ||
<div class="span6"> | ||
{{=paginate_info}} | ||
</div> | ||
<div class="span6" style="text-align:right"> | ||
{{=paginate_selector}} | ||
</div> | ||
</div> | ||
|
||
|
||
|
||
<ul class="thumbnails"> | ||
{{for article in articles:}} | ||
<li> | ||
<a class="thumbnail" style="width:330px;height:400px;" href="{{=CURL('article','show', args=[article.id,article.slug], extension=False)}}" data-content="Hamburguer bom de pular o pica pau" data-original-title="Hamburguer vegano do capeta"> | ||
<h4>{{=article.title}} | ||
<div class="fb-like" data-href="{{=CURL('article','show',args=[article.id, article.slug], scheme=True, host=True)}}" data-send="true" data-layout="button_count" data-width="100" data-show-faces="false" data-font="verdana" data-action="like"></div> | ||
</h4> | ||
<div class="" style="width:300px;height:300px;overflow:hidden;"> | ||
<img src="{{=article.thumbnail.replace('451','300') if article.thumbnail else ''}}" /> | ||
</div> | ||
<div class="caption" style="width:310px;min-height:36px;overflow:hidden;margin-top:-30px;"> | ||
<p class="pull-left" style="max-width:200px;"> | ||
<strong>{{=get_name_of(article.author)}}</strong> | ||
<br /> | ||
<small> | ||
"{{=article.description[:80]}}..." | ||
</small> | ||
</p> | ||
{{=IMG(_class="pull-right", _style="width:100px;height:100px",_src=get_image(None, 'user', themename='bootstrap', user=article.author))}} | ||
|
||
</div> | ||
|
||
</a> | ||
</li> | ||
{{pass}} | ||
</ul> | ||
|
||
<div class="span12 pagination pagination-centered" align="center"> | ||
{{=paginator}} | ||
</div> | ||
|
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
{{response.files.append(URL('static','menu/js/article_list.js'))}} | ||
{{extend "menu/app/layout.html"}} | ||
<div class="well" style="padding-top:5px;margin:5px 0;"> | ||
<h3>{{=title}}</h3> | ||
{{if len(content_types) > 1:}} | ||
{{=T("Filter")}}: | ||
{{=A(T("All"), _href=CURL("article","list", args=request.args, vars=dict([(k,v) for k, v in request.vars.items() if k != "content_type_id"])))}} | ||
{{=CAT(*[A(" | ", T(content_type.title), _href=CURL("article","list", args=request.args, | ||
vars=dict(content_type_id=content_type.id, **dict([(k,v) for k, v in request.vars.items() if k not in ["content_type_id", "category"]])))) for content_type in content_types])}} | ||
{{pass}} | ||
|
||
<a href="{{=CURL('article', 'list', extension='rss', vars=request.vars, args=request.args)}}" class="pull-right">{{=iicon('signal')}}{{=T("RSS feed")}}</a> | ||
</div> | ||
|
||
{{for item in categories:}} | ||
{{if item['id'] == int(request.vars.get('content_type_id', 0)):}} | ||
{{for category in item['categories']:}} | ||
<a class="label label-info category-link" href="{{=CURL('article', 'list', extension=False ,vars=dict(category=category.name, content_type_id=item['id']))}}" data-url="{{=CURL('article', 'list', vars=dict(category=category.name, content_type_id=item['id']))}}"><i class="i"></i> {{=T(category.name)}}</a> | ||
{{pass}} | ||
<hr class="thin-hr" style="margin-bottom:5px;"> | ||
{{pass}} | ||
{{pass}} | ||
|
||
<div class="row-fluid"> | ||
<div class=""> | ||
<form method="GET" enctype="multipart/form-data" action=""> | ||
<input type="text" placeholder="{{='Find article'}}" value="{{=request.vars.get('sq', '')}}" name="sq" id="sq" style="margin-bottom:0;"> | ||
{{for key, value in request.vars.items():}} | ||
{{if key != 'sq':}} | ||
<input type="hidden" value="{{=value}}" id="{{=key}}" name="{{=key}}"> | ||
{{pass}} | ||
{{pass}} | ||
<button class="btn btn-success">Find</button> | ||
</form> | ||
</div><!--/span--> | ||
</div> | ||
|
||
<div class="row-fluid"> | ||
<div class="span6"> | ||
{{=paginate_info}} | ||
</div> | ||
<div class="span6" style="text-align:right"> | ||
{{=paginate_selector}} | ||
</div> | ||
</div> | ||
|
||
{{for article in articles:}} | ||
<div class="span12 list-article-wrapper well" data-url="{{=CURL('article', 'show', args=[article.id, article.slug], extension=False)}}" style="margin:5px;padding:0;"> | ||
|
||
<div class="row list-article-row"> | ||
<div class="span2" style="padding:10px"> | ||
{{=A(IMG(_src=get_image(article.thumbnail, article.content_type_id.identifier), _width=100, _height=100), _href=CURL('article', 'show', args=[article.id, article.slug], extension=False))}}<br /> | ||
<span class="list-article-like"><i class="icon-thumbs-up"></i>{{=T("%s likes", article.likes or 0)}}</span> | ||
<!-- div class="fb-like" data-href="{{=CURL('article','show',args=[article.id, article.slug], scheme=True, host=True)}}" data-send="false" data-layout="button_count" data-width="100" data-show-faces="false" data-font="verdana" data-action="like"></div --> | ||
</div> | ||
<div class="span8" style="padding:10px"> | ||
{{=A(H4(article.title, _class="list-article-title"), _href=CURL('article', 'show', args=[article.id, article.slug], extension=False))}} | ||
<em><span class="label label-info">{{=T(article.content_type_id.title)}}</span> {{=T("by")}} {{=A(article.author.nickname, _href=CURL('person','show', args=article.author.nickname or article.author, extension=False))}} <i class="icon-time"></i> {{=pdate(article.created_on)}}</em> <br /> | ||
{{if article.tags:}} | ||
<em><i class="icon-tags"></i> {{=tagfy(article.tags, extension=False)}}</em> | ||
{{pass}} | ||
<p class="list-article-description"> | ||
{{=A(XML("%s ..." % remove_tags(article.description)[:150]), _href=CURL('article', 'show', args=[article.id, article.slug], extension=False))}} | ||
</p> | ||
|
||
</div> | ||
</div> | ||
</div> | ||
{{pass}} | ||
|
||
<div class="span12 pagination pagination-centered" align="center"> | ||
{{=paginator}} | ||
</div> | ||
|
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
{{response.files.append(URL('static','menu/js/article_list.js'))}} | ||
{{extend "menu/app/layout.html"}} | ||
<div class="well" style="padding-top:5px;margin:5px 0;"> | ||
<h3>{{=title}}</h3> | ||
{{if len(content_types) > 1:}} | ||
{{=T("Filter")}}: | ||
{{=A(T("All"), _href=CURL("article","list", args=request.args, vars=dict([(k,v) for k, v in request.vars.items() if k != "content_type_id"])))}} | ||
{{=CAT(*[A(" | ", T(content_type.title), _href=CURL("article","list", args=request.args, | ||
vars=dict(content_type_id=content_type.id, **dict([(k,v) for k, v in request.vars.items() if k not in ["content_type_id", "category"]])))) for content_type in content_types])}} | ||
{{pass}} | ||
|
||
<a href="{{=CURL('article', 'list', extension='rss', vars=request.vars, args=request.args)}}" class="pull-right">{{=iicon('signal')}}{{=T("RSS feed")}}</a> | ||
</div> | ||
|
||
{{for item in categories:}} | ||
{{if item['id'] == int(request.vars.get('content_type_id', 0)):}} | ||
{{for category in item['categories']:}} | ||
<a class="label label-info category-link" href="{{=CURL('article', 'list', extension=False ,vars=dict(category=category.name, content_type_id=item['id']))}}" data-url="{{=CURL('article', 'list', vars=dict(category=category.name, content_type_id=item['id']))}}"><i class="i"></i> {{=T(category.name)}}</a> | ||
{{pass}} | ||
<hr class="thin-hr" style="margin-bottom:5px;"> | ||
{{pass}} | ||
{{pass}} | ||
|
||
<div class="row-fluid"> | ||
<div class=""> | ||
<form method="GET" enctype="multipart/form-data" action=""> | ||
<input type="text" placeholder="{{='Find article'}}" value="{{=request.vars.get('sq', '')}}" name="sq" id="sq" style="margin-bottom:0;"> | ||
{{for key, value in request.vars.items():}} | ||
{{if key != 'sq':}} | ||
<input type="hidden" value="{{=value}}" id="{{=key}}" name="{{=key}}"> | ||
{{pass}} | ||
{{pass}} | ||
<button class="btn btn-success">Find</button> | ||
</form> | ||
</div><!--/span--> | ||
</div> | ||
|
||
<div class="row-fluid"> | ||
<div class="span6"> | ||
{{=paginate_info}} | ||
</div> | ||
<div class="span6" style="text-align:right"> | ||
{{=paginate_selector}} | ||
</div> | ||
</div> | ||
|
||
{{for article in articles:}} | ||
<div class="span12 list-article-wrapper well" data-url="{{=CURL('article', 'show', args=[article.id, article.slug], extension=False)}}" style="margin:5px;padding:0;"> | ||
|
||
<div class="row list-article-row"> | ||
<div class="span2" style="padding:10px"> | ||
{{=A(IMG(_src=get_image(article.thumbnail, article.content_type_id.identifier), _width=100, _height=100), _href=CURL('article', 'show', args=[article.id, article.slug], extension=False))}}<br /> | ||
<span class="list-article-like"><i class="icon-thumbs-up"></i>{{=T("%s likes", article.likes or 0)}}</span> | ||
<!-- div class="fb-like" data-href="{{=CURL('article','show',args=[article.id, article.slug], scheme=True, host=True)}}" data-send="false" data-layout="button_count" data-width="100" data-show-faces="false" data-font="verdana" data-action="like"></div --> | ||
</div> | ||
<div class="span8" style="padding:10px"> | ||
{{=A(H4(article.title, _class="list-article-title"), _href=CURL('article', 'show', args=[article.id, article.slug], extension=False))}} | ||
<em><span class="label label-info">{{=T(article.content_type_id.title)}}</span> {{=T("by")}} {{=A(article.author.nickname, _href=CURL('person','show', args=article.author.nickname or article.author, extension=False))}} <i class="icon-time"></i> {{=pdate(article.created_on)}}</em> <br /> | ||
{{if article.tags:}} | ||
<em><i class="icon-tags"></i> {{=tagfy(article.tags, extension=False)}}</em> | ||
{{pass}} | ||
<p class="list-article-description"> | ||
{{=A(XML("%s ..." % remove_tags(article.description)[:150]), _href=CURL('article', 'show', args=[article.id, article.slug], extension=False))}} | ||
</p> | ||
|
||
</div> | ||
</div> | ||
</div> | ||
{{pass}} | ||
|
||
<div class="span12 pagination pagination-centered" align="center"> | ||
{{=paginator}} | ||
</div> | ||
|
Oops, something went wrong.