Fixes on ImageField and FileForm
This commit is contained in:
parent
f5d9fbd308
commit
fa2fcf359b
2 changed files with 123 additions and 394 deletions
|
|
@ -3,6 +3,7 @@
|
|||
namespace PhangoApp\PhaModels\Forms;
|
||||
|
||||
use PhangoApp\PhaModels\Forms\BaseForm;
|
||||
use PhangoApp\PhaUtils\Utils;
|
||||
|
||||
/**
|
||||
* Basic class for create forms
|
||||
|
|
@ -17,8 +18,17 @@ class FileForm extends BaseForm{
|
|||
|
||||
$this->type='file';
|
||||
$this->enctype=1;
|
||||
$this->file_url='';
|
||||
|
||||
}
|
||||
|
||||
public function form()
|
||||
{
|
||||
|
||||
return '<input type="'.$this->type.'" class="'.$this->css.'" name="'.$this->name.'_file" value=""> <a href="'.$this->file_url.'/'.$this->default_value.'">'.Utils::form_text($this->default_value).'</a><input type="hidden" name="'.$this->name.'" value="'.$this->setform($this->default_value).'" />';
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue