Intraweb Using Template - Printable Version +- Atozed Forums (https://www.atozed.com/forums) +-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html) +--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html) +---- Forum: English (https://www.atozed.com/forums/forum-16.html) +----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html) +----- Thread: Intraweb Using Template (/thread-1981.html) Pages:
1
2
|
Intraweb Using Template - Okanms - 09-18-2020 hi, I have a template. I want to design a user login page using this template. How to add {%IW..%} to the code block below for Username, Password, Login Button and Forgot password link. Code: <html> RE: Intraweb Using Template - Jose Nilton Pace - 09-18-2020 Change the input's, before: Code: <input class="input100" type="text" name="username"> Code: {%IWEdit_Username%} for buttons, you can add an id="NAMEYOURBUTTON" (in UPPERCASE) : Code: <button class="login100-form-btn">Login</button> Code: <button class="login100-form-btn" id="IWBUTTON_LOGGIN">Login</button> RE: Intraweb Using Template - Okanms - 09-19-2020 hi, Thank you for answer. But I couldn't do what you said. I am sharing my original files. Would you like to help? https://mega.nz/file/no9jwBiQ#K-snmgZNSnTNQpLiRyxpRE_hjhx8WQkCAYEWD7GHhzM RE: Intraweb Using Template - Jose Nilton Pace - 09-19-2020 Hi. Of course. Some considerations: -Templates folder only have your forms. -Templates folder have to located in the same folder as EXE. -Create a folder named wwwroot in same folder as EXE. -Move all folders of your template (css/fonts/js/vendor) inside wwwroot folder. -In templateprocessor component, set RenderStyles := False; -In fmUserLogin.html, put your edits and your button, see atached. RE: Intraweb Using Template - Okanms - 09-19-2020 Thank you so much. Thanks to you, I learned how to do it. Why is the data in the text box confused in the button click event? RE: Intraweb Using Template - Okanms - 09-19-2020 I did TemplateProcessorHTML MasterFormTag = False, it was fixed. RE: Intraweb Using Template - DanBarclay - 09-20-2020 (09-19-2020, 10:31 AM)Okanms Wrote: hi, Jose provided your answers, but I'll offer a tip: Note that the Template files but only the template files go in the Template directory. It does good to remember that the templates are not just served up, they are only used to create IWforms. All other files should go where any other IWform would look for them... which will be based on the wwwroot as "home". You may have already had your files set up like that but often people try to put dependent files in the same directory as the Template so I leave the comment for others later with similar issues. (I did not look at your sample to determine this was your trouble, it's just a tip and is based on Jose's comments) Dan RE: Intraweb Using Template - Okanms - 09-20-2020 (09-20-2020, 12:21 AM)DanBarclay Wrote:Thank you so much.(09-19-2020, 10:31 AM)Okanms Wrote: hi, IWEdit1.Required := True; I want to ask another question with your permission. Can the warning be disabled for required fields in the IWEdit? I am already showing this warning in the IWEdit. RE: Intraweb Using Template - Okanms - 10-01-2020 IWEdit1.Required := True; I want to ask another question with your permission. Can the warning be disabled for required fields in the IWEdit? I am already showing this warning in the IWEdit. RE: Intraweb Using Template - Alexandre Machado - 10-02-2020 If you are validating it yoruself, just set required to false. Required is just a test for an empty field. If you are testing it, no need to test it again |