...went back to the beginner's tutorial Databound form "Application form"
http://www.couchcms.com/docs/concepts/databound-forms.html
I'm trying to make a one-to-many relationship between the application form and usernames, what I'm trying to achieve is that each username has his own application form cloned since each time there's an application filled, it will only be seen by the user, who is the owner.
Code from application.php:
Am I going the right way?
Any help appreciated
http://www.couchcms.com/docs/concepts/databound-forms.html
I'm trying to make a one-to-many relationship between the application form and usernames, what I'm trying to achieve is that each username has his own application form cloned since each time there's an application filled, it will only be seen by the user, who is the owner.
Code from application.php:
- Code: Select all
<cms:template title='Application Form' clonable='1'>
<cms:editable name='first_name' required='1' type='text' />
<cms:editable name='last_name' required='1' type='text' />
<cms:editable name='email' required='1' validator='email' type='text' />
<cms:editable name='portfolio' validator='url' type='text' />
<cms:editable name='position' required='1' type='dropdown'
opt_values=' Please choose=- | Interface Designer | Software Engineer | Systems Administrator | Office Manager'
/>
<cms:editable name='salary' type='text' search_type='decimal' />
<cms:editable name='resume' required='1' allowed_ext='pdf, doc, docx' max_size='1024' type='securefile' />
<cms:editable type='relation' name=applications' masterpage='users/index.php' reverse_has='one' />
</cms:template>
Am I going the right way?
Any help appreciated