adminfaces / admin-theme Goto Github PK
View Code? Open in Web Editor NEWPrimefaces admin theme based on Admin LTE and Bootstrap
Home Page: https://adminfaces.github.io/site/docs/latest/#admin_theme
License: MIT License
Primefaces admin theme based on Admin LTE and Bootstrap
Home Page: https://adminfaces.github.io/site/docs/latest/#admin_theme
License: MIT License
As reported here. The problem happens when
multiple="true"
<p:selectCheckboxMenu id="usuarioFiltro"
value="#{tarefaPortalBean.userSelecionado}" label="Usuários"
multiple="true" filter="true" filterMatchMode="startsWith"
panelStyle="width:250px"
converter="omnifaces.SelectItemsConverter">
<f:selectItems value="#{tarefaPortalBean.usuarios}" var="u"
itemLabel="#{u.name}" itemValue="#{u}" />
</p:selectCheckboxMenu>
Checkbox menu is not styled accordingly and also has a render bug:
It should use font awesome for icons and labels/values and also be styled like chips component.
TabView width must be set to 100% on small devices
Create a logo/brand for AdminFaces
<div class="container">
<div class="col-lg-12">
<div class="row">
<h3>Nova Factura</h3>
<div class="control-group form-group">
<div class="controls">
<label>Import Factura:</label>
<p:inputNumber styleClass="form-control" id="importfactura" value="#{controlFacturacio.facturaventa.importfactura}" symbol=" EUR" symbolPosition="s"
decimalSeparator="," thousandSeparator=".">
</p:inputNumber>
</div>
</div>
</div>
</div>
</div>
Like said on Twitter, when an issue is found, i will create an account and file them. Keep up the good work, i really like the theme implementation!
I found the following:
When adding a chip the label is misplaced
The below is what was expected
This is fixed by overriding this in the admin template with:
span.ui-autocomplete-token-label { display: inline-block; }
This currently is display: block.
Affected version: RC6
Browser: Chrome 58.0.3029.110 (Official Build) (64-bit)
OS: Windows 10
selectCheckboxMenu with type multiple is misrendered in Firefox
Selected items doesn't contain the close icon to remove item, also looks there is some aditional padding:
Close icon should be rendered on selected itens so they can be removed:
<p:selectCheckboxMenu id="chkmenu-multiple" label="Cities"
multiple="true" filter="true" filterMatchMode="startsWith">
<f:selectItems value="#{checkboxMB.cities}"/>
</p:selectCheckboxMenu>
Create a video showing AdminFaces main features.
Make Primefaces chips component look like ngTags: http://mbenford.github.io/ngTagsInput/documentation/guides/bootstrap
Make radio button look like materialize one: https://material.io/guidelines/components/selection-controls.html#selection-controls-radio-button
Show only paginator pages on extreme small devides (480px)
Currently admin theme comes with bootstrap.css embbeded.
Create a classifier, similar to dev classifier, named without-bootstrap in order to generate a theme.css file without bootstrap.
The usage may be something like:
<dependency>
<groupId>com.github.adminfaces</groupId>
<artifactId>admin-theme</artifactId>
<version>1.0.0-SNAPSHOT</version>
<classifier>exclude-bootstrap</classifier>
</dependency>
Add borders only on top and bottom of rows as in material design datatables: https://material.io/guidelines/components/data-tables.html#
It is related to #7
The checkbox in treetable with multiple selection is blank
Just use a treetable with selection type checkbox
<p:treeTable value="#{treeTableMB.root}" selectionMode="checkbox" selection="#{treeTableMB.selectedNodes}"
...
Issue: When users update admin theme version they see css issues in components. Same happens with standard or premium primefaces themes, see here: primefaces/primefaces#1598
Solution:
One solution is to use OmniFaces combined resource handler and make it work with the theme, see example here: https://github.com/omnifaces/omnifaces/wiki/Combine-hardcoded-PrimeFaces-resources-using-CombinedResourceHandler.
Another solution is to create a maven classifier with the theme version, example:
<dependency>
<groupId>com.github.adminfaces</groupId>
<artifactId>admin-theme</artifactId>
<version>1.0.0-RC5</version>
<classifier>RC5</classifier>
</dependency>
and in web.xml:
<context-param>
<param-name>primefaces.THEME</param-name>
<param-value>admin-RC5</param-value>
</context-param>
The first solution can be implemented by theme users in their applications. The second one needs to be provided by admin-theme.
Some components are displayed 'behind' dialog due to z-index issues, e.g selecOneMenu is currently not working.
Currently the resource handling (mainly images urls) is relying on JSF resource mechanism.
Make it possible to generate a theme.css without JSF resources.
<!-- Page Content -->
<div class="container">
<div class="col-lg-12">
<div class="row">
<h3>Send us a Message</h3>
<div class="control-group form-group">
<div class="controls">
<label>Full Name:</label>
<input type="text" class="form-control" id="name" required-message="Please enter your name.">
<p class="help-block"></p>
</input>
</div>
</div>
<div class="control-group form-group">
<div class="controls">
<label>Phone Number:</label>
<input type="tel" class="form-control" id="phone" required-message="Please enter your phone number.">
</input>
</div>
</div>
<div class="control-group form-group">
<div class="controls">
<label>Date:</label>
<p:calendar class="form-control" value="#{controlFacturacio.facturaventa.datafactura}" />
</div>
</div>
<div class="control-group form-group">
<div class="controls">
<label>Tag:</label>
<p:selectOneMenu id="car" value="#{controlFacturacio.tagSeleccionat}" converter="omnifaces.SelectItemsConverter" >
<f:selectItem itemLabel="Select One" itemValue="" />
<f:selectItems value="#{llistaTagLists}" var="tag" itemValue="#{tag}" itemLabel="#{tag.nomTag}" />
</p:selectOneMenu>
</div>
</div>
<div class="control-group form-group">
<div class="controls">
<label>Tag:</label>
<p:selectOneMenu id="console" value="#{controlFacturacio.tagTextSeleccionat}">
<f:selectItem itemLabel="Select One" itemValue="" />
<f:selectItem itemLabel="Xbox One" itemValue="Xbox One" />
<f:selectItem itemLabel="PS4" itemValue="PS4" />
<f:selectItem itemLabel="Wii U" itemValue="Wii U" />
</p:selectOneMenu>
</div>
</div>
<div id="success"></div>
<p:commandButton ajax="true" value="Crea Factura" icon="fa fa-plus" styleClass="btn-primary" actionListener="#{controlFacturacio.creaFactura(actionEvent)}" />
</div>
</div>
</div>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.