Commit 33b261d7 authored by Thomas Löffler's avatar Thomas Löffler
Browse files

[TASK] First changes to templates

* Adds two partials for search und membership icons
* Removes useless stuff out of list view
parent a7b73830
......@@ -9,6 +9,6 @@ plugin.tx_t3omembership {
}
persistence {
# cat=plugin.tx_t3omembership//a; type=string; label=Default storage PID
storagePid =
storagePid = 883
}
}
\ No newline at end of file
......@@ -12,28 +12,3 @@ plugin.tx_t3omembership {
# rewrittenPropertyMapper = 1
}
}
\ No newline at end of file
plugin.tx_t3omembership._CSS_DEFAULT_STYLE (
textarea.f3-form-error {
background-color:#FF9F9F;
border: 1px #FF0000 solid;
}
input.f3-form-error {
background-color:#FF9F9F;
border: 1px #FF0000 solid;
}
.tx-t3o-membership table {
border-collapse:separate;
border-spacing:10px;
}
.tx-t3o-membership table th {
font-weight:bold;
}
.tx-t3o-membership table td {
vertical-align:top;
}
)
\ No newline at end of file
......@@ -20,6 +20,7 @@
<label index="tx_t3omembership_domain_model_membership">Membership</label>
<label index="tx_t3omembership_domain_model_membership.name">name</label>
<label index="tx_t3omembership_domain_model_membership.logo">logo</label>
<label index="filter">Search</label>
</languageKey>
</data>
</T3locallang>
\ No newline at end of file
<f:form action="list" method="GET">
<f:form.textfield name="filter" value="{filterTerm}" />
<f:form.submit value="{f:translate(key:'filter')}" class="bu" />
</f:form>
\ No newline at end of file
<f:layout name="Default" />
This Template is responsible for creating a table of domain objects.
If you modify this template, do not forget to change the overwrite settings
in /Configuration/ExtensionBuilder/settings.yaml:
Resources:
Private:
Templates:
List.html: keep
Otherwise your changes will be overwritten the next time you save the extension in the extension builder
<f:section name="main">
<h1>Listing for Member</h1>
<f:flashMessages />
<f:render partial="Member/Filter" />
<f:render partial="Member/Membership" />
<table class="tx_t3omembership" >
<tr>
<th><f:translate key="tx_t3omembership_domain_model_member.name" /></th>
<th><f:translate key="tx_t3omembership_domain_model_member.external_id" /></th>
<th><f:translate key="tx_t3omembership_domain_model_member.end_date" /></th>
<th><f:translate key="tx_t3omembership_domain_model_member.address" /></th>
<th><f:translate key="tx_t3omembership_domain_model_member.zip" /></th>
<th><f:translate key="tx_t3omembership_domain_model_member.city" /></th>
<th><f:translate key="tx_t3omembership_domain_model_member.country" /></th>
<th><f:translate key="tx_t3omembership_domain_model_member.email" /></th>
<th><f:translate key="tx_t3omembership_domain_model_member.url" /></th>
<th> </th>
<th> </th>
<th><f:translate key="tx_t3omembership_domain_model_member.membership" /></th>
</tr>
<f:for each="{members}" as="member">
<tr>
<td><f:link.action action="show" arguments="{member : member}"> {member.name}</f:link.action></td>
<td><f:link.action action="show" arguments="{member : member}"> {member.externalId}</f:link.action></td>
<td><f:link.action action="show" arguments="{member : member}"> {member.endDate -> f:format.date()}</f:link.action></td>
<td><f:link.action action="show" arguments="{member : member}"> {member.address}</f:link.action></td>
<td><f:link.action action="show" arguments="{member : member}"> {member.zip}</f:link.action></td>
<td><f:link.action action="show" arguments="{member : member}"> {member.city}</f:link.action></td>
<td><f:link.action action="show" arguments="{member : member}"> {member.country}</f:link.action></td>
<td><f:link.action action="show" arguments="{member : member}"> {member.email}</f:link.action></td>
<td><f:link.action action="show" arguments="{member : member}"> {member.url}</f:link.action></td>
<td><f:link.action action="edit" arguments="{member : member}">Edit</f:link.action></td>
<td><f:link.action action="delete" arguments="{member : member}">Delete</f:link.action></td>
<td>{member.name}</td>
<td>{member.country}</td>
<td>{member.membership}</td>
</tr>
</f:for>
</table>
<f:link.action action="new">New Member</f:link.action>
</f:section>
\ No newline at end of file
......@@ -6,7 +6,7 @@ if (!defined('TYPO3_MODE')) {
Tx_Extbase_Utility_Extension::registerPlugin(
$_EXTKEY,
'List',
'Listing'
'Association member list'
);
t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'TYPO3 Membership');
......
Supports Markdown
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