Sorry about that this would be the full code
{{extend 'project/test.html'}}
{{include 'web2py_ajax.html'}}
Update
/* Style the tab */
.tab {
overflow: hidden;
border: 1px solid #ccc;
background-color: #f1f1f1;
}
.form-control {
width: fit-content;
width: auto;
}
/* Style the buttons inside the tab */
.tab button {
background-color: inherit;
float: left;
border: none;
outline: none;
cursor: pointer;
padding: 14px 16px;
transition: 0.3s;
font-size: 17px;
}
/* Change background color of buttons on hover */
.tab button:hover {
background-color: #ddd;
}
/* Create an active/current tablink class */
.tab button.active {
background-color: rgb(233,105, 61);
}
/* Style the tab content */
.tabcontent {
display: none;
padding: 6px 12px;
border: 1px solid #ccc;
border-top: none;
}
.header {
padding: 60px;
text-align: center;
background: #E9693D;
color: white;
font-size: 30px;
}
Overview
Team
Third
Parties
Activity
{{=form.custom.begin}}
General
Project Name {{=form.custom.widget.project_name}}
Project Description
{{=form.custom.widget.project_description}}
Project Country {{=form.custom.widget.project_country}}
Equity Share{{=form.custom.widget.equity_share}}
Strategy Initiative{{=form.custom.widget.strategy_initiative}}
Technical Data
Project Technology {{=form.custom.widget.technology}}
Project Capacity {{=form.custom.widget.capacity_mw}}
Development
Project Development Phase
{{=form.custom.widget.project_devlopment_phase}}
Project Initiated {{=form.custom.widget.initiated}}
Project Expected COD {{=form.custom.widget.expected_cod}}
Project Status {{=form.custom.widget.status}}
Development
BD Team{{=form.custom.widget.bd_team}}
BD Manager{{=form.custom.widget.bd_manager}}
Offtaker {{=form.custom.widget.offtaker}}
Partner {{=form.custom.widget.partner}}
{{if len(activities_project):}}
Activity
{{for activity in activities_project:}}
{{=projects.project_name}} says {{=activity.body}} Posted
on {{=activity.created_on}} by {{=activity.created_by.first_name}}
{{=activity.created_by.last_name}}
{{pass}}
{{else:}}
No comments posted yet
{{pass}}
{{=form_activity}}
{{=form.custom.submit}}
{{=form.custom.end}}
function tab(evt, cityName) {
var i, tabcontent, tablinks;
tabcontent = document.getElementsByClassName("tabcontent");
for (i = 0; i < tabcontent.length; i++) {
tabcontent[i].style.display = "none";
}
tablinks = document.getElementsByClassName("tablinks");
for (i = 0; i < tablinks.length; i++) {
tablinks[i].className = tablinks[i].className.replace(" active",
"");
}
document.getElementById(cityName).style.display = "block";
evt.currentTarget.className += " active";
}
document.getElementById("defaultOpen").click();
snide...@gmail.com schrieb am Dienstag, 6. September 2022 um 13:21:41 UTC+7:
> On Sunday, September 4, 2022 at 8:00:25 PM UTC-7 silvia...@gmail.com
> wrote:
>
>> Hello everyone, I think I have an issue that can not be resolved that
>> easy to be quite honest I have a custom form and an post form on the same
>> page my issue is I think I made a mistake with the design since it is all
>> in between tabs see screenshot attached.
>>
>> So my question would be is there a better solution or should I restyle
>> the whole page ?
>>
>>
> In the code below, I don't see where you start the form.
>
>
>> Here is the code aswell for reference :
>>
>>
>> {{if len(activities_project):}}
>> Activity
>>
>>
>> {{for activity in activities_project:}}
>> {{=projects.project_name}} says {{=activity.body}} Posted
>> on {{=activity.created_on}} by {{=activity.created_by.first_name}}
>> {{=activity.created_by.last_name}}
>>
>> {{pass}}
>>
>> {{else:}}
>> No comments posted yet
>> {{pass}}
>> {{=form_activity}}
>>
>> {{=form.custom.submit}}
>> {{=form.custom.end}}
>>
>
> /dps
>
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this grou