<!-- Personal Details -->
<panel>
  <layout class="arrange_vertical_attachment" alignment="top,extend" offset="-6" gap="8"/>
  <layout class="stick_to_sides_attachment" alignment="horizontal" layout_children="true" inset="4" />

  <!-- WITH PORTRAIT -->
  <!-- this version of the table is used if the player portrait is visible -->
  <widget class="table" id="pld1" mode="printable, fill_rows" layout="230,35,1,-1,78" fixed_size_rows="true" row_spacing="0" row_height="17">

    <list id="column_properties">
      <record indx="0" alignment="right,centre_y"/>
      <record indx="1" alignment="left,centre_y" />
      <record indx="2" alignment="right,centre_y" />
      <record indx="3" alignment="left,centre_y" />
      <record indx="4" alignment="left,centre_y" />
    </list>

    <!-- small inset from sides of table -->
    <list id="column_display_properties">
      <record indx="0" left="0" sort_disabled="true"/>
      <record indx="1" left="6" sort_disabled="true"/>
      <record indx="2" left="6" sort_disabled="true"/>
      <record indx="3" rght="6" sort_disabled="true"/>
      <record indx="4" rght="6" sort_disabled="true"/>
    </list>

    <!-- custom row graphics -->
    <list id="row_properties">
      <record indx="8">
        <flags id="appearance" value="table/custom/stripe/row"/>
      </record>
      <record indx="9">
        <flags id="appearance" value="table/custom/stripe/row"/>
      </record>
      <record indx="12">
        <flags id="appearance" value="table/custom/stripe/row" />
      </record>
      <record indx="13">
        <flags id="appearance" value="table/custom/stripe/row"/>
      </record>
    </list>


    <!-- Attribute Analyser Container -->
    <container class="group_box" id="over" row="1" col="3" column_span="5" row_span="8">
      <layout class="arrange_horizontal_attachment" layout="0,-7" offset="0" gap="0"/>
      <layout class="stick_to_sides_attachment" alignment="vertical" layout_children="true" inset="0" />

      <!--mugshot-->
      <widget class="picture" id="ppic" image_alignment="bottom" scale_picture="true" keep_aspect_ratio="true"/>

      <!-- Attribute Analyser -->
      <container id="ppaa">
        <layout class="fit_children_attachment" alignment="vertical,fill" offset="0" gap="0" />
        <layout class="stick_to_sides_attachment" alignment="top,horizontal" layout_children="true" inset="0" />

        <container class="subsection_box" id="ovrv" title="" appearance="" translate="false">
          <!-- there are two panels here: one for goalkeepers, and one for outfield players
			          only one panel is visible at any time -->
          <layout class="fit_children_attachment" alignment="vertical,fill" offset="0" gap="0" />
          <layout class="stick_to_sides_attachment" alignment="top" inset="0" />
          <layout class="stick_to_sides_attachment" alignment="top,horizontal" layout_children="true" inset="0" />
          
          <!-- outfield player analyser panel : visible by default -->
          <widget class="person_attributes_analyser_panel" id="ofap" file="player attribute analyser outfield" hidden="false" auto_size="vertical" />
          <!-- goalkeeper player analyser panel : hidden by default -->
          <widget class="person_attributes_analyser_panel" id="gkap" file="player attribute analyser goalkeeper" hidden="true" auto_size="vertical" />
        </container>
        <!-- subsection box -->
      </container>
    </container>
    <!-- Attribute Analyser Container -->

<!-- Logo and Picture Container -->
		<widget class="group_box" row="0" col="0" column_span="5" row_span="18">

      <!-- Club Logo -->
			<widget class="picture" id="pict" transparency="0.3" scale_picture="true" keep_aspect_ratio="true" height="140" width="140" image_alignment="centre">
        <layout class="centre_in_parent_attachment" alignment="horizontal" offset="-180" priority="1"/>
        <layout class="stick_to_sides_attachment" alignment="top" inset="10" priority="1"/>

        <!-- tells the picture to listen to the 'main picture' global property being set, and set its own file property from it -->
        <attachment class="get_global_attachment" get_property="mnpc" set_property="file" skip_if_null="false"/>

        <!-- tells the picture to listen for the 'main picture needs recolouring' property and sets its own 'should recolour' property from it -->
        <attachment class="get_global_attachment" get_property="mprc" set_property="srec" skip_if_null="false"/>

        <!-- the background, foreground and outline colours of the object we use for recolouring the default main picture if there is one, and it should be recoloured -->
        <attachment class="get_global_attachment" get_property="bkcl" set_property="rrep"/>
        <attachment class="get_global_attachment" get_property="fcol" set_property="grep"/>
        <attachment class="get_global_attachment" get_property="ocol" set_property="brep"/>
      </widget>

<!-- Picture Container -->

		<!-- Player Picture -->
		<widget class="picture" id="ppic" scale_picture="true" keep_aspect_ratio="true" height="310" width="182" image_alignment="centre">
		<layout class="stick_to_sides_attachment" alignment="top" inset="0"/>
		<layout class="stick_to_sides_attachment" alignment="left" inset="-8"/>
		</widget>

		</widget>	
    
    <!-- Temporary Row Fillers - the picture and logo should possibly be put in their own table -->
    		<widget class="label" col="0" row="1" />
		<widget class="label" col="0" row="2" />
		<widget class="label" col="0" row="3" />
		<widget class="label" col="0" row="4" />
		<widget class="label" col="0" row="5" />
		<widget class="label" col="0" row="6" />
		<widget class="label" col="0" row="7" />
		<widget class="label" col="0" row="8" />
		<widget class="label" col="0" row="9" />
                <widget class="label" col="0" row="10" />			
		<widget class="label" col="0" row="11" />
                <widget class="label" col="0" row="12" />				
	        <widget class="label" col="0" row="13" />
                <widget class="label" col="0" row="14" />
                <widget class="label" col="0" row="15" />                
                <widget class="label" col="0" row="16" />
		<widget class="label" col="0" row="17" />
                <widget class="label" col="0" row="18" />     
		
    <!-- Nationality -->
    <widget class="nation_button" id="pfna" col="3" row="10" column_span="2" icon_alignment="left,can_scale" dspf="1" style="semi_bold"/>

    <!-- International Appearances -->
    <widget class="international_appearances_label" id="pfcg" col="3" row="11" column_span="2" size="7"/>

    <!-- Age -->
    <widget class="label" id="pfag" col="2" row="10" column_span="2" style="semi_bold"/>

    <!-- Date Of Birth -->
    <widget class="label" id="pdob" col="2" row="11" column_span="2" size="7" />

    <!-- Height -->
    <widget class="height_label" id="phei" col="3" row="12" column_span="2" style="semi_bold"/>

    <!-- Weight -->
    <widget class="weight_label" id="pwei" col="3" row="13" column_span="2" size="7" />

    <!-- Preferred Foot -->
    <widget class="label" id="pfot" col="2" row="12" column_span="2" style="semi_bold"/>

    <!-- Preferred Foot Label -->
    <widget class="label" id="text" text="Preferred Foot" col="2" row="13" column_span="2" size="7" />

    <!-- Wage -->
    <widget class="label" id="wagw" col="3" row="14" column_span="2" style="semi_bold"/>

    <!-- Contract Expiry -->
    <widget class="label" id="pexp" col="3" row="15" column_span="2" size="7" />
 
   <!-- Value -->
    <widget class="value_label" id="pval" col="2" row="14" column_span="2" style="semi_bold"/>

    <!-- Value Label -->
    <widget class="label" id="text" text="Estimated Value[COMMENT: player profile; value label]" col="2" row="15" column_span="2" size="7" />

    <!--Extra Info -->
    <widget class="text" id="pinf" spec="text" col="1" row="16" column_span="4" alignment="centre_x,centre_y" style="semi_bold" colour="profile extra text"/>
  
  </widget>


  <!-- WITHOUT PORTRAIT -->
  <!-- this version of the table is used if the player portrait is hidden -->
  <widget class="table" id="pld2" mode="fill_rows, stripe_rows, printable" layout="-1,-1,-1" fixed_size_rows="true" row_spacing="0" row_height="20">

    <list id="headings">
      <record text="Personal Details" alignment="left, centre_y" column_span="3"/>
    </list>

    <list id="column_properties">
      <record indx="0" alignment="left,centre_y"/>
      <record indx="1" alignment="right,centre_y" colour="selection"/>
      <record indx="2" alignment="right,centre_y" colour="selection"/>
    </list>

    <!-- small inset from sides of table -->
    <list id="column_display_properties">
      <record indx="0" left="4" sort_disabled="true"/>
      <record indx="1" rght="4" sort_disabled="true"/>
      <record indx="2" rght="4" sort_disabled="true"/>
    </list>

    <!-- Nationality -->
    <widget class="label" text="Nationality" col="0" row="0" column_span="2" />
    <widget class="nation_button" id="pfna" col="1" row="0" column_span="2" icon_alignment="right,can_scale" dspf="1"/>

    <!-- Caps + Goals -->
    <widget class="label" text="International" col="0" row="1" column_span="2" />
    <widget class="international_appearances_label" id="pfcg" col="1" row="1" column_span="2" />

    <!-- DOB -->
    <widget class="label" text="Born" col="0" row="2" column_span="2" />
    <widget class="label" id="pdob" col="1" row="2" column_span="2" />

    <!-- Age -->
    <widget class="label" text="Age" col="0" row="3" column_span="2" />
    <widget class="label" id="pfag" col="1" row="3" column_span="2" />

    <!-- Player Position -->
    <widget class="label" text="Position" col="0" row="4" column_span="2" />
    <widget class="label" id="pprs" col="1" row="4" column_span="2" />

    <!-- Foot -->
    <widget class="label" text="Preferred Foot" col="0" row="5" column_span="2" />
    <widget class="label" id="pfot" col="1" row="5" column_span="2" />

    <!-- Height -->
    <widget class="label" text="Height[COMMENT - player profile panel; height label]" col="0" row="6" column_span="2" />
    <widget class="height_label" id="phei" col="1" row="6" column_span="2" />

    <!-- Weight -->
    <widget class="label" text="Weight[COMMENT - player profile panel; weight label]" col="0" row="7" column_span="2" />
    <widget class="weight_label" id="pwei" col="1" row="7" column_span="2" />

    <!-- Value -->
    <widget class="label" text="Value" col="0" row="8" column_span="2" />
    <widget class="label" id="pval" col="1" row="8" column_span="2" />

    <!-- Wage Details -->
    <widget class="label" text="Basic Wage" col="0" row="9" column_span="2" />
    <widget class="label" id="wagw" col="1" row="9" column_span="2" />

    <!--Contract Expires -->
    <widget class="label" text="Contract Expires" col="0" row="10" column_span="2" />
    <widget class="label" id="pexp" col="1" row="10" column_span="2" />

    <!--Extra Info -->
    <widget class="text" spec="text" id="pinf" col="0" row="11" column_span="3" colour="profile extra text" alignment="right, centre_y"/>

  </widget>

</panel>
