Commit 5ef10bf8 authored by speedprogs_de's avatar speedprogs_de

added some partials, added controller to each link, cleaned templates

git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/terfe/branches/ter_fe2@45613 735d13b6-9817-0410-8766-e36946ffe9aa
parent b776d2d9
......@@ -8,13 +8,13 @@
</div>
<div class="tx_terfe2_additional">
<h2><f:translate key="header.categories"/></h2>
<f:render partial="CategoryList" arguments="{categories: categories}"/><br />
<f:render partial="CategoryMenu" arguments="{categories: categories}"/><br />
<h2><f:translate key="header.tags"/></h2>
<f:render partial="TagCloud" arguments="{tags: tags}"/><br />
<h2><f:translate key="header.random_authors"/></h2>
<f:render partial="AuthorList" arguments="{authors: randomAuthors}"/><br />
<f:render partial="AuthorMenu" arguments="{authors: randomAuthors}"/><br />
<h2><f:translate key="header.quicklinks"/></h2>
<ul>
......
<f:if condition="{authors}">
<f:then>
<f:for each="{authors}" as="author">
<div class="tx_terfe2_author">
<h3>{author.name}</h3>
<p><f:link.action controller="Author" action="edit" arguments="{author : author}"><f:translate key="edit"/></f:link.action></p>
<p><f:link.action controller="Author" action="delete" arguments="{author : author}"><f:translate key="delete"/></f:link.action></p>
</div>
</f:for>
</f:then>
<f:else>
<f:translate key="msg.no_entries_found"/>
</f:else>
</f:if>
\ No newline at end of file
<f:if condition="{categories}">
<f:then>
<f:for each="{categories}" as="category">
<div class="tx_terfe2_category">
<h3>{category.title}</h3>
<p><f:link.action controller="Category" action="edit" arguments="{category : category}"><f:translate key="edit"/></f:link.action></p>
<p><f:link.action controller="Category" action="delete" arguments="{category : category}"><f:translate key="delete"/></f:link.action></p>
</div>
</f:for>
</f:then>
<f:else>
<f:translate key="msg.no_entries_found"/>
</f:else>
</f:if>
\ No newline at end of file
<f:if condition="{tags}">
<f:then>
<f:for each="{tags}" as="tag">
<div class="tx_terfe2_tag">
<h3>{tag.title}</h3>
<p><f:link.action controller="Tag" action="edit" arguments="{tag : tag}"><f:translate key="edit"/></f:link.action></p>
<p><f:link.action controller="Tag" action="delete" arguments="{tag : tag}"><f:translate key="delete"/></f:link.action></p>
</div>
</f:for>
</f:then>
<f:else>
<f:translate key="msg.no_entries_found"/>
</f:else>
</f:if>
\ No newline at end of file
......@@ -19,5 +19,5 @@
<f:form.submit value="{f:translate(key:'edit')}" />
</f:form>
<f:link.action action="index"><f:translate key="back_to_list"/></f:link.action>
<f:link.action controller="Author" action="index"><f:translate key="back_to_list"/></f:link.action>
</f:section>
\ No newline at end of file
<f:layout name="Default" />
<f:section name="main">
<table cellpadding="4" style="border:1px solid black;">
<tr>
<th><f:translate key="tx_terfe2_domain_model_author.name" /></th>
<th><f:translate key="tx_terfe2_domain_model_author.email" /></th>
<th><f:translate key="tx_terfe2_domain_model_author.company" /></th>
<th><f:translate key="tx_terfe2_domain_model_author.forge_link" /></th>
<th>&nbsp;</th>
<th>&nbsp;</th>
</tr>
<f:for each="{authors}" as="author">
<tr>
<td>{author.name}</td>
<td>{author.email}</td>
<td>{author.company}</td>
<td>{author.forgeLink}</td>
<td><f:link.action action="edit" arguments="{author : author}"><f:translate key="edit"/></f:link.action></td>
<td><f:link.action action="delete" arguments="{author : author}"><f:translate key="delete"/></f:link.action></td>
</tr>
</f:for>
</table>
<f:render partial="AuthorList" arguments="{authors: authors}"/>
<br />
<f:link.action action="new"><f:translate key="create_author"/></f:link.action>
<f:link.action controller="Author" action="new"><f:translate key="create_author"/></f:link.action>
</f:section>
\ No newline at end of file
......@@ -19,5 +19,5 @@
<f:form.submit value="{f:translate(key:'create')}" />
</f:form>
<f:link.action action="index"><f:translate key="back_to_list"/></f:link.action>
<f:link.action controller="Author" action="index"><f:translate key="back_to_list"/></f:link.action>
</f:section>
\ No newline at end of file
......@@ -23,7 +23,7 @@
</table>
<br />
<f:link.action action="edit" arguments="{author : author}"><f:translate key="edit"/></f:link.action>
<f:link.action action="delete" arguments="{author : author}"><f:translate key="delete"/></f:link.action>
<f:link.action action="index"><f:translate key="back_to_list"/></f:link.action>
<f:link.action controller="Author" action="edit" arguments="{author : author}"><f:translate key="edit"/></f:link.action>
<f:link.action controller="Author" action="delete" arguments="{author : author}"><f:translate key="delete"/></f:link.action>
<f:link.action controller="Author" action="index"><f:translate key="back_to_list"/></f:link.action>
</f:section>
\ No newline at end of file
......@@ -13,5 +13,5 @@
<f:form.submit value="{f:translate(key:'edit')}" />
</f:form>
<f:link.action action="index"><f:translate key="back_to_list"/></f:link.action>
<f:link.action controller="Category" action="index"><f:translate key="back_to_list"/></f:link.action>
</f:section>
\ No newline at end of file
<f:layout name="Default" />
<f:section name="main">
<table cellpadding="4" style="border:1px solid black;">
<tr>
<th><f:translate key="tx_terfe2_domain_model_category.title" /></th>
<th><f:translate key="tx_terfe2_domain_model_category.description" /></th>
<th>&nbsp;</th>
<th>&nbsp;</th>
</tr>
<f:for each="{categories}" as="category">
<tr>
<td>{category.title}</td>
<td>{category.description}</td>
<td><f:link.action action="edit" arguments="{category : category}"><f:translate key="edit"/></f:link.action></td>
<td><f:link.action action="delete" arguments="{category : category}"><f:translate key="delete"/></f:link.action></td>
</tr>
</f:for>
</table>
<f:render partial="CategoryList" arguments="{categories: categories}"/>
<br />
<f:link.action action="new"><f:translate key="create_category"/></f:link.action>
<f:link.action controller="Category" action="new"><f:translate key="create_category"/></f:link.action>
</f:section>
\ No newline at end of file
......@@ -13,5 +13,5 @@
<f:form.submit value="{f:translate(key:'create')}" />
</f:form>
<f:link.action action="index"><f:translate key="back_to_list"/></f:link.action>
<f:link.action controller="Category" action="index"><f:translate key="back_to_list"/></f:link.action>
</f:section>
\ No newline at end of file
......@@ -10,5 +10,5 @@
<f:form.submit value="{f:translate(key:'edit')}" />
</f:form>
<f:link.action action="index"><f:translate key="back_to_list"/></f:link.action>
<f:link.action controller="Tag" action="index"><f:translate key="back_to_list"/></f:link.action>
</f:section>
\ No newline at end of file
<f:layout name="Default" />
<f:section name="main">
<table cellpadding="4" style="border:1px solid black;">
<tr>
<th><f:translate key="tx_terfe2_domain_model_tag.title" /></th>
<th>&nbsp;</th>
<th>&nbsp;</th>
</tr>
<f:for each="{tags}" as="tag">
<tr>
<td>{tag.title}</td>
<td><f:link.action action="edit" arguments="{tag : tag}"><f:translate key="edit"/></f:link.action></td>
<td><f:link.action action="delete" arguments="{tag : tag}"><f:translate key="delete"/></f:link.action></td>
</tr>
</f:for>
</table>
<f:render partial="TagList" arguments="{tags: tags}"/>
<br />
<f:link.action action="new"><f:translate key="create_tag"/></f:link.action>
<f:link.action controller="Tag" action="new"><f:translate key="create_tag"/></f:link.action>
</f:section>
\ No newline at end of file
......@@ -10,5 +10,5 @@
<f:form.submit value="{f:translate(key:'create')}" />
</f:form>
<f:link.action action="index"><f:translate key="back_to_list"/></f:link.action>
<f:link.action controller="Tag" action="index"><f:translate key="back_to_list"/></f:link.action>
</f:section>
\ No newline at end of file
......@@ -34,7 +34,10 @@ div.tx_terfe2 li {
list-style-type: square;
}
div.tx_terfe2_extension {
div.tx_terfe2_extension,
div.tx_terfe2_category,
div.tx_terfe2_author,
div.tx_terfe2_tag {
border: 1px dashed #424242;
margin-bottom: 12px;
padding: 0 6px;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment