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

Feature: HTML5 Input Types #70

Closed
nilskoppelmann opened this issue Jun 29, 2016 · 10 comments
Closed

Feature: HTML5 Input Types #70

nilskoppelmann opened this issue Jun 29, 2016 · 10 comments
Assignees
Labels
Milestone

Comments

@nilskoppelmann
Copy link

  • search
  • email
  • url
  • tel
  • number
  • range
    • attr: min, max, step, list
  • date
  • month
  • week
  • time
  • datetime
  • datetime-local
  • color

@alexplusde noch irgendwelche Ideen?

Vorschlag:

$objForm = new mform();

$objForm->addRangeField(1, array(
  'min' => '1',
  'max' => '10',
  'label' => 'range with min/max'
));

$objForm->addRangeField(2, array(
  'label' => 'range with datalist'
));

$objForm->addDataList([0, -30, 30, 50]);

echo $objForm->show();
<input type="range" name="REX_INPUT_VALUE[1]" min="1" max="10">
<input type="range" name="REX_INPUT_VALUE[2]">
<datalist id="powers">
  <option value="0">
  <option value="-30">
  <option value="30">
  <option value="+50">
</datalist>
@alxndr-w
Copy link
Member

@nilsology gut vorgelegt, im Moment keine weiteren Ideen.

Deine Vorschläge könnten aber auch bei YForm Berücksichtigung finden, wir hatten auf dem Redaxo-Tag mal überlegt, ein input="date"-Kalenderfeld zu integrieren. Muss wohl gar nicht so schwer sein, einfach das bestehende text-input-Feld Template abzuwandeln.

@joachimdoerr
Copy link
Member

Eine sinnvolle Erweiterung, ich plane das mal für den nächsten Release ein.

@joachimdoerr joachimdoerr added this to the 4.3.0 milestone Jul 1, 2016
@ynamite
Copy link
Member

ynamite commented Oct 9, 2018

Leider funktioniert das Ganze im aktuellen Release nicht mehr. In der Version 5.1.0 hatte ich folgendes:

$mform->addInputField("date", 1, array('label'=>'Datum')); 

Hat prima funktioniert. Nach dem Update auf 5.2.2 funktionieren bei mir keine der HTML5 Input-Elemente mehr. Mach ich etwas falsch? Hab 1:1 die Beispiele kopiert.

@alxndr-w
Copy link
Member

Selbes Problem hier...

@joachimdoerr
Copy link
Member

sollte nun funktionieren. bitte mit der aktuellen master testen.

@skerbis
Copy link
Member

skerbis commented Oct 16, 2018

Getestet 👍

@alxndr-w
Copy link
Member

@ynamite kannst du das testen, ich kann es gerade nicht...

@joachimdoerr
Copy link
Member

@skerbis kannst du das bitte releasen, ich komme nicht dazu.

@skerbis
Copy link
Member

skerbis commented Oct 17, 2018

Japp.

@skerbis skerbis closed this as completed Oct 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants