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/form #29

Merged
merged 18 commits into from
Jan 6, 2017
Merged

Feature/form #29

merged 18 commits into from
Jan 6, 2017

Conversation

romaninsh
Copy link
Member

@romaninsh romaninsh commented Jan 3, 2017

(includes #28), on-going work for implementing Form. Because of how extensive the functionality of Form is, there might be multiple phases for Form implementation, i'll try to keep it structured though.

  • Implement R/O standalone fields
  • Implement field labels
  • Association with Form

Further work is done in feature/form2 branch:

  • Integrate form submit action
  • Fetch value from model and display
  • Take value from submitted data and put back into model

@romaninsh
Copy link
Member Author

Added form implementation:

screen shot 2017-01-04 at 06 36 46

(see demos/input.php)

@romaninsh
Copy link
Member Author

Added more field types:
screen shot 2017-01-04 at 15 58 32

if ($this->rightIcon && !is_object($this->rightIcon)) {
$this->rightIcon = $this->add(new Icon($this->rightIcon), 'Content');

if ($this->content) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is $this->icon or $this->rightIcon is already an object? Shouldn't we execute this part of code in such case too? (add class labeled, remove content etc.)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's currently incosistent in the project but i've addressed that in the next PR, but i'm not fully sure.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, then merging this in.

@DarkSide666 DarkSide666 merged commit 793d32f into develop Jan 6, 2017
@DarkSide666 DarkSide666 deleted the feature/form branch January 6, 2017 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants