Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML5 void tag App::getTag() aware handling #1884

Merged
merged 12 commits into from
Oct 5, 2022
2 changes: 1 addition & 1 deletion .github/workflows/test-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ jobs:
run: |
cp -r template template.orig
find template -not -type d -not -name '*.pug' -delete
(cd template && pug --silent --pretty .)
(cd template && pug --doctype html --pretty --silent .)

- name: Compile CSS files (only for Slow)
if: matrix.type == 'Chrome Slow'
Expand Down
9 changes: 2 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Agile UI - User Interface framework for Agile Toolkit
# Agile UI - Low-code PHP Framework for Web Apps

[Agile Toolkit](https://agiletoolkit.org/) is a Low Code framework written in PHP. Agile UI implement server side rendering engine and over 50 UI generic components for interacting with your Data Model.

Expand Down Expand Up @@ -37,11 +37,7 @@ high-level projects developed entirely on Agile Toolkit.

### Who uses Agile Toolkit?

Companies use Agile Toolkit to implement admin interface and in some cases even user-facing interface.

- www.linkedfinance.com
- www.sortmybooks.com
- If you have a project built with Agile Toolkit - add it here!
Many companies use Agile Toolkit to implement admin interface and in some cases even user-facing interface.

### How does it work?

Expand Down Expand Up @@ -264,7 +260,6 @@ Add-ons:
- [User Authentication and ACL](https://github.com/atk4/login) - User Log-in, Registration and Access Control for Agile UI
- [Charts add-on](https://github.com/atk4/chart) - Modern looking and free charts with [chartJS](https://www.chartjs.org/)
- [Audit for Models](https://github.com/atk4/audit) - Record all DB operations with Undo/Redo support for Agile Data
- [Data for Reports](https://github.com/atk4/report) - Implement data aggregation and union models for Agile Data

Integrations:

Expand Down
3 changes: 1 addition & 2 deletions demos/layout/templates/layout1.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@
<head>
<!-- Standard Meta-->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<!-- Site Properties-->
<title>Rainas homepage</title>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.10/semantic.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-serialize-object/2.5.0/jquery.serialize-object.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.10/semantic.min.js"></script>
<style type="text/css">
<style>
@media (min-height: 320px) {
.ui.footer.form-page { /* Increased specificity for SO snippet priority */
position: absolute;
Expand Down
3 changes: 1 addition & 2 deletions demos/layout/templates/layout1.pug
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@ html
head
// Standard Meta
meta(charset='utf-8')
meta(http-equiv='X-UA-Compatible', content='IE=edge,chrome=1')
meta(name='viewport', content='width=device-width, initial-scale=1.0, maximum-scale=1.0')
// Site Properties
title Rainas homepage
link(rel='stylesheet', type='text/css', href='https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.10/semantic.css')
script(src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js')
script(src='https://cdnjs.cloudflare.com/ajax/libs/jquery-serialize-object/2.5.0/jquery.serialize-object.min.js')
script(src='https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.10/semantic.min.js')
style(type='text/css').
style.
@media (min-height: 320px) {
.ui.footer.form-page { /* Increased specificity for SO snippet priority */
position: absolute;
Expand Down
3 changes: 1 addition & 2 deletions demos/layout/templates/layout2.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@
<head>
<!-- Standard Meta-->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<!-- Site Properties-->
<title>Agile UI - Button Test</title>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.10/semantic.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-serialize-object/2.5.0/jquery.serialize-object.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.10/semantic.min.js"></script>
<style type="text/css">
<style>
@media (min-height: 320px) {
.ui.footer.form-page { /* Increased specificity for SO snippet priority */
position: absolute;
Expand Down
3 changes: 1 addition & 2 deletions demos/layout/templates/layout2.pug
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@ html
head
// Standard Meta
meta(charset='utf-8')
meta(http-equiv='X-UA-Compatible', content='IE=edge,chrome=1')
meta(name='viewport', content='width=device-width, initial-scale=1.0, maximum-scale=1.0')
// Site Properties
title Agile UI - Button Test
link(rel='stylesheet', type='text/css', href='https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.10/semantic.css')
script(src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js')
script(src='https://cdnjs.cloudflare.com/ajax/libs/jquery-serialize-object/2.5.0/jquery.serialize-object.min.js')
script(src='https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.10/semantic.min.js')
style(type='text/css').
style.
@media (min-height: 320px) {
.ui.footer.form-page { /* Increased specificity for SO snippet priority */
position: absolute;
Expand Down
1 change: 0 additions & 1 deletion docs/app.rst
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,6 @@ Utilities by App
App provides various utilities that are used by other components.

.. php:method:: getTag()
.. php:method:: encodeHtmlAttribute()
.. php:method:: encodeHtml()

Apart from basic utility, App class provides several mechanisms that are helpful for components.
Expand Down
2 changes: 1 addition & 1 deletion docs/form-control.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ You can set default value and interact with a form control using JavaScript::
When used stand-alone, Form\Controls will produce a basic HTML (I have omitted id=)::

<div class="ui input">
<input name="line" type="text" placeholder="" value="hello world" />
<input name="line" type="text" placeholder="" value="hello world">
</div>


Expand Down
2 changes: 1 addition & 1 deletion js/src/components/multiline/multiline-header.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default {
<sui-table-headerCell :colspan="getVisibleColumns()">{{caption}}</sui-table-headerCell>
</sui-table-row>
<sui-table-row :verticalAlign="'top'">
<sui-table-header-cell width="one" textAlign="center"><input type="checkbox" @input="onToggleDeleteAll" :checked.prop="isChecked" :indeterminate.prop="isIndeterminate" ref="check"></input></sui-table-header-cell>
<sui-table-header-cell width="one" textAlign="center"><input type="checkbox" @input="onToggleDeleteAll" :checked.prop="isChecked" :indeterminate.prop="isIndeterminate" ref="check"></sui-table-header-cell>
<sui-table-header-cell v-for="(column, idx) in columns" :key="idx" v-if="column.isVisible" :textAlign="getTextAlign(column)">
<div>{{column.caption}}</div>
<div :style="{position: 'absolute', top: '-22px'}" v-if="false"><sui-label pointing="below" basic color="red" v-if="getErrorMsg(column)">{{getErrorMsg(column)}}</sui-label></div>
Expand Down
2 changes: 1 addition & 1 deletion js/src/components/multiline/multiline-row.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default {
name: 'atk-multiline-row',
template: `
<sui-table-row :verticalAlign="'middle'">
<sui-table-cell width="one" textAlign="center"><input type="checkbox" @input="onToggleDelete" v-model="toDelete"></input></sui-table-cell>
<sui-table-cell width="one" textAlign="center"><input type="checkbox" @input="onToggleDelete" v-model="toDelete"></sui-table-cell>
<sui-table-cell @keydown.tab="onTab(idx)" v-for="(column, idx) in columns" :key="idx" :state="getErrorState(column)" v-bind="column.cellProps" :style="{overflow: 'visible'}" v-if="column.isVisible">
<atk-multiline-cell
:cellData="column"
Expand Down
2 changes: 1 addition & 1 deletion js/src/plugins/js-sortable.plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export default class JsSortable extends atkPlugin {
}

injectStyles(style) {
$('head').append('<style type="text/css">' + style + '</style>');
$('head').append('<style>' + style + '</style>');
}
}

Expand Down
Loading